Click here to Skip to main content
13,089,943 members (47,887 online)
Rate this:
 
Please Sign up or sign in to vote.
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 29-Mar-13 1:53am
Radzhab1.2K
Updated 9-Mar-17 1:28am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

Good luck!
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

use this \" string escape .

{
                    "id": "9429531978965160",
                    "name": "Morning in  \"Paris\"",  
                    "alias": "ThisAlias"
 
},
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 9 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100