2
Answers

I want string like this in javascript

rajeev kumar

rajeev kumar

7y
243
1
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);
 

Answers (2)