PDA

View Full Version : handling JSON



waqasaslammmeo
6 Mar 2012, 11:42 PM
hello every one again :P !
my extjs code is returning a JSON array as a parameter to my webservice , now i want to convert that json array in a normal array , so that i can save it in my database ,
1-how can i do this ?
2-is it imp to change that json array into a normal array in order to save it in my database ?

Please guide me and help me in this , as all of you are my teachers , friends , and buddies ,

Best Regards

M.Waqas Aslam

chramer
7 Mar 2012, 12:51 AM
what kind of webservice do you have ?
in PHP I use "json_decode" function!

waqasaslammmeo
7 Mar 2012, 2:11 AM
i have c# webservice , how to convert the json array to simple array . ?

chramer
7 Mar 2012, 2:25 AM
Google is you friend! :)
http://stackoverflow.com/questions/401756/parsing-json-using-json-net