Skip to content

Instantly share code, notes, and snippets.

@mamund
Forked from inadarei/gist:ba17f7adad22e65d2299
Last active September 29, 2015 21:51
Show Gist options
  • Save mamund/cabb05bfa57a466190a5 to your computer and use it in GitHub Desktop.
Save mamund/cabb05bfa57a466190a5 to your computer and use it in GitHub Desktop.
using RFC6570-style for arrays.
{
"name" : "Amtrak Route Zeta",
"active" : true,
"availableFrom": "2014-01-01T00:00:00Z,2011-01-01T00:00:00Z,2009-01-01T00:00:00Z",
"availableUntil": "2015-01-01T00:00:00Z,2012-01-01T00:00:00Z,2010-01-01T00:00:00Z"
}
@mamund
Copy link
Author

mamund commented Sep 29, 2015

use this model to create the above body.

model="{ "name" : "{name}", "active" : {active}, "availableFrom": "{+availableFrom}", "availableUntil": "{+availableUntil}"}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment