Advertisement
Guest User

Untitled

a guest
Nov 19th, 2013
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. An unhandled exception of type 'Newtonsoft.Json.JsonSerializationException' occurred in Newtonsoft.Json.dll
  2.  
  3. Additional information: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'post2plaintext.Post[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
  4.  
  5. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
  6.  
  7. Path 'posts', line 1, position 9.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement