Skip to content

Instantly share code, notes, and snippets.

@lpgauth
Created March 8, 2011 20:57
Show Gist options
  • Save lpgauth/861033 to your computer and use it in GitHub Desktop.
Save lpgauth/861033 to your computer and use it in GitHub Desktop.
A = 1,
B = undefined,
C = 3,
Struct = {struct, [
{<<"A">>, A},
{<<"B">>, B},
{<<"C">>, c}]},
JSON = mochijson2:encode(Struct).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment