Exception is thrown in JSON parser ParseString (char[] json, ref int index, ref bool success) #39
Labels
No labels
bug
enhancement
high priority
low priority
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
andyburke/UnityHTTP#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The function in lib/JSON.cs:193
protected static string ParseString (char[] json, ref int index, ref bool success)throws an exception "The argument must not be in surrogate pair range" in lib/JSON.cs:244
s.Append (Char.ConvertFromUtf32 ((int)codePoint));that is not handled by (tested on instagram API,media/popularendpoint). If you assume JSON API return status code via bool argument, this exception must be handled.I've muted it with
it works, but i'm not sure if it is correct logic.
Can you add some example JSON that causes this exception to throw?
try this one (remove .jpg from filename)

In spite of the cause of exception, it must be handled internally in this function.