Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Kami/2802631 to your computer and use it in GitHub Desktop.
Swiz - de-serialization example (output)
{ id: 15245,
name: 'server #1',
is_active: true,
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