i have json string array like this
var stringold= [
{"aptid":1,"businesname":"skulink","ownrnm":"rajiv"},
{"aptid":2,"businesname":"prodegios","ownrnm":"sanjeev"}
]
**// but i want like this**
var newstring=[
["aptid":1,"businesname":"skulink","ownrnm":"rajiv"],
["aptid":2,"businesname":"prodegios","ownrnm":"sanjeev"]
]
What I have tried:
var jsonm = msg.d;
var jsonm = $.parseJSON(msg.d);
//var objectStringArray = (new Function("return [" + jsonm + "];")());
var test = JSON.parse(jsonm);