var
objPerson = {};
objPerson.Names
= 'Chill';
objPerson.CarNo
= [1, 2, 3]
var
jsonResultText = JSON.stringify(objPerson, null,
2);
jsonResultText;
-------------------
The above will produce the below json string as output
"{
"Names": "Chill",
"CarNo": [
1,
2,
3
]
}"
No comments:
Post a Comment