Skip to content

Instantly share code, notes, and snippets.

@Kami
Created May 27, 2012 07:39
Show Gist options
  • Select an option

  • Save Kami/2802638 to your computer and use it in GitHub Desktop.

Select an option

Save Kami/2802638 to your computer and use it in GitHub Desktop.
Swiz - serialization example (output - JSON)
JSON:
{
"id": "15245",
"is_active": true,
"name": "server #1",
"agent_name": "some agent",
"public_ips": [
"123.45.55.44",
"122.123.32.2"
],
"state": "active",
"opts": {
"option1": "defaultval",
"option2": "defaultval",
"option3": "something"
},
"data": {
"foo": "thingone",
"bar": "thingtwo"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment