Skip to content

Instantly share code, notes, and snippets.

@ntotten
Created October 17, 2011 23:49
Show Gist options
  • Select an option

  • Save ntotten/1294232 to your computer and use it in GitHub Desktop.

Select an option

Save ntotten/1294232 to your computer and use it in GitHub Desktop.
SimpleJson @object
public static bool TryDeserializeObject(string json, out object @object)
{
bool success = true;
if (json != null)
{
char[] charArray = json.ToCharArray();
int index = 0;
@object = ParseValue(charArray, ref index, ref success);
}
else
@object = null;
return success;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment