What you are doing makes no sense. First of all, this
var stringold= [
{"aptid":1,"businesname":"skulink","ownrnm":"rajiv"},
{"aptid":2,"businesname":"prodegios","ownrnm":"sanjeev"}
]
is an array of JSON objects. You should leave it as it is, understand the JSON format and learn the correct way of working with it rather than trying to change it into string. See one example below:
<!DOCTYPE html>
<html>
<body>
<div id="json_string"></div>
<div id="json_element1"></div>
<div id="json_element2"></div>
<script>
var jsonArray = [{"aptid":1,"businesname":"skulink","ownrnm":"rajiv"},
{"aptid":2,"businesname":"prodegios","ownrnm":"sanjeev"}];
document.getElementById("json_string").innerHTML=JSON.stringify(jsonArray);
document.getElementById("json_element1").innerHTML=jsonArray[0].aptid + " " + jsonArray[0].businesname + " " + jsonArray[0].ownrnm;
document.getElementById("json_element2").innerHTML=jsonArray[1].aptid + " " + jsonArray[1].businesname + " " + jsonArray[1].ownrnm;
</script>
</body>
</html>
See demo at:
JSFiddle[
^]
Learn more about:
1.
JSON[
^]
2.
JavaScript JSON[
^]