19
Views
2
Comments
Solved
Error in Deserializing Json
Question

Hi Everyone,



receiving this error while copying Json data in deserializing json -


Syntax error 



2021-06-02 20-50-04
Márcio Carvalho
Solution

Replace the " inside of the array for '

2017-06-21 13-04-28
Mikko Nieminen

Hi,

Double quotes are used in expressions to start/end a string value, but in json you pasted, they are not escaped and you have an error.

Try escaping those double quotes in your json:  "[ {  "id": 2 ...  -> "[ { \""id\"": 2 ...

edit: @Márcio Carvalho's answer above is the another option.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.