Click here to Skip to main content
15,891,811 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From server i get json. Json is very big. I show litle piece of this

...
{
                    "id": "9429531978965160",
                    "name": "Morning in  "Paris"",  // json.net cannot deserialize this line, because line have no escaped quotes.
                    "alias": "ThisAlias"

},

....


After parsing a value an unexpected character was encountered: L. Path 'result[16].children[7].name', line 1, position 51081.
Posted
Updated 9-Mar-17 1:28am
v2

Looks like the server gives you faulty json. You can easily check the json here:
http://jsonlint.com/[^]

Good luck!
 
Share this answer
 
use this \" string escape .

{
                    "id": "9429531978965160",
                    "name": "Morning in  \"Paris\"",  
                    "alias": "ThisAlias"

},
 
Share this answer
 
Comments
CHill60 9-Mar-17 8:44am    
Question is 4 years old and the original post already mentions the string escape as being the problem. OP is also not generating this JSON - it's coming from elsewhere

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900