Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I called server method from java script using page methods, and the server method return JSON String (result) like this

{"errorString":not found ,"obj":[[{"VideoId":1,"VideoName":"C sharp ","WebSite":"You tube","VideoLink":"www.youtube.com","Description":"This is C Sharp Tutorial"},{"VideoId":2,"VideoName":"VB .net","WebSite":"You tube","VideoLink":"www.youtube.com","Description":"This is VB.net Tutorial"}]]}


Please let me know how to read this json string in java script.

I am trying to read like this

alert(result.errorString)
alert(result.obj[0].VideoId)

but I am not getting

Thanks in advance
Posted
Updated 29-Aug-11 18:23pm
v10

 
Share this answer
 
 
Share this answer
 
<b>空间哦</b><u>i呼吁uuuuu</u>uuuuuuu<strike>uuuuuuuuuuuu </strike>
 
Share this answer
 
 
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