I have the following JSON
:
{"TicketID":["116","114","112","108","107","104","102"]}
When I try to deserialize to string[]
I get the error:
Server Error in Application '/'.
No constructor without parameters was set to the type of 'System.String []'. Description: unhandled exception during the execution of the current Web request. Examine the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: No constructor without parameters was defined for the type of 'System.String []'.
Source Error:
Line 130: // return response.Result.Content.ReadAsStringAsync (). Result.ToString (); Line 131: Line 132: String [] TicketID = new JavaScriptSerializer () .Deserialize (response.Result.Content.ReadAsStringAsync () .result);
I saw other answers about creating an object, but none of them solved the problem.
How can I extract a% of% of this string[]
?