Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2012 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4246349 to your computer and use it in GitHub Desktop.
Save anonymous/4246349 to your computer and use it in GitHub Desktop.
json example
Integer i = (Integer) Json.deserialize(JSON.serialize(null),Integer.class);
system.assertequals(null,i,'integer is not null');
string str = (string) Json.deserialize(JSON.serialize(null),String.class);
system.assertequals(null,str,'string is not null');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment