Created
March 2, 2017 19:02
-
-
Save marcelschmidtdev/16be7926e855c13d6abe6b7296a2d8c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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