SOLVED error while export JSON to playfab
Unexpected character encountered while parsing value: }. Path 'Catalog.SIS.Requirement.Text', line 1, position 962.
I am following your guide for playfab integration. but this error comes up.
is this when exporting from SIS (within Unity) or when uploading the JSON file to PlayFab?
What version of SIS are you using?
Could you post the JSON here, so I can let it run through a JSON validator?
Tried to reproduce this and resolved with the following fix, could you please check it out too?
At the end of IAPSettingsExporter.cs:
data["Catalog"] = itemArray; //preformatted result, eventual JSON errors with empty strings string result = data.ToString(); result = result.Replace(":,", ":\"\","); result = result.Replace(":}", ":\"\"}"); return result;
Thank you @baron
I fix the error with your code.
One more thing, how do i know if i succecssfully make connection with Playfab API, because in my title overview window i dont get any API call
how do i know if i succecssfully make connection with Playfab API
If you are not using "Validation Only", you'll have to login the user with PlayFab before showing the store. You can use the sample login scene included for testing this.
With "Validation Only" enabled on the PlayFabManager, you would just try to purchase a product in your shop (on a mobile device - there are no receipts in the Unity Editor).