Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is the follow-up of my thread at [^]. In that thread, I got JSON data through a URL using JQuery .ajax Get. In Debugging, I can see that the data obtained is [object] [object] rather than the real data. I need to do some reformatting and some conversion on the data. E.g. the JSON data is originally an ArrayList. How can this be done? Thanks if you can provide your advice.
Posted
Comments
Tejas Vaishnav 7-Jan-14 8:43am    
first you can try to get data like
..
success:function(data) {
alert(data.d);
}
...
can you share your code..
[no name] 7-Jan-14 9:18am    
Data retrieved through a URL, returned as a string
{"Geometry": [ { "paths": [ [ [ 201394.01178484457, 173661.08635829584 ], [ 201392.0117168416, 173661.08690949593 ], ... ] ] } ] }

1 solution

use JsonConvert.DeserializeObject
Refer these links
Deserialize JSON with C#[^]

JsonConvert[^]
 
Share this answer
 

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