Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI,
i have to show a list of Nested data. it can be kind of a tree view

where parent node would be publications and child node would be articles.

my issue is we need to pass all the data using Json object and only in one request.

can anyone please let me know how to bind treeview using Json ?




P.S.


my issue is i get the data in the json object but get some parser error in console ?

SyntaxError: JSON.parse: expected ',' or '}'

this error we are getting.
Posted
Updated 8-Jan-14 17:59pm
v2
Comments
Jameel VM 9-Jan-14 0:00am    
Please post the code what you have tried yet?

1 solution

There might be some double quotes within in JSON result something like
{"EmpName":"abc"d"}. It should be {"EmpName":"abc\"d"}
i.e use escape sequence.
if this is not the case, post your json result so that we can analyse
 
Share this answer
 

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


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