4
I have the following JSON
:
{"TicketID":["116","114","112","108","107","104","102"]}
When I try to deserialize string[]
get the bug:
Server Error in Application '/'.
No constructor without parameters was set to the type of 'System.String[]'. Description: A exception without processing during the execution of the current Web request. Examine stack tracking for more information on the error and where it originated in the code.
Exception Details: System.Missingmethodexception: No constructor no parameters set for 'System.String type[]'.
Error of Origin:
Line 130: //Return 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 solved the problem.
How to extract a string[]
that JSON
?