Skip to content

Instantly share code, notes, and snippets.

@R-Rudolf
Created July 25, 2015 14:09
Show Gist options
  • Save R-Rudolf/64cbf83f899c20ca20bb to your computer and use it in GitHub Desktop.
Save R-Rudolf/64cbf83f899c20ca20bb to your computer and use it in GitHub Desktop.
class REQ
{
public string field1 { get; set; }
public int field2 { get; set; }
}
void use()
{
string req = JsonParser.Serialize(new REQ() { field1 = "asd", field2 = 32; });
REQ resp = JsonParser.Deserialize<REQ>(response);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment