Skip to content

Instantly share code, notes, and snippets.

@marcelschmidtdev
Created March 2, 2017 19:02
Show Gist options
  • Save marcelschmidtdev/16be7926e855c13d6abe6b7296a2d8c7 to your computer and use it in GitHub Desktop.
Save marcelschmidtdev/16be7926e855c13d6abe6b7296a2d8c7 to your computer and use it in GitHub Desktop.
// The Google Play receipt JSON comes with a payload, which contains a string of nested JSON structure.
// In order to deserialize that structure, apply this method to the raw JSON string BEFORE you
// deserialize it to an object.
public static string FixJSONFormat (string json)
{
return json.Replace (@"\\\", "").Replace (@"\""", @"""").Replace (@"""{", @"{").Replace (@"}""", @"}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment