Skip to content

Instantly share code, notes, and snippets.

@Kami
Created May 28, 2012 19:25
Show Gist options
  • Select an option

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

Select an option

Save Kami/2820793 to your computer and use it in GitHub Desktop.
Swiz - serialization example (output - JSON for public)
JSON (for public):
{
"id": "15245",
"is_active": true,
"name": "server #1",
"agent_name": "some agent",
"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