javascript from objectstring to object code example
Example 1: convert json object to array javascript
var as = JSON.parse(jstring);
Example 2: js string to json
var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}
var as = JSON.parse(jstring);
var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}