convert json array to javascript array code example
Example 1: js array to json
const jsonString = JSON.stringify(yourArray);
const yourData = JSON.parse(jsonString);
Example 2: change js to json
var obj = {name: "Martin", age: 30, country: "United States"};
var json = JSON.stringify(obj);
console.log(json);
"https://www.tutorialrepublic.com/faq/how-to-convert-js-object-to-json-string.php"
Example 3: javascript parse json
var jsonPerson = '{"first_name":"billy", "age":23}';
var personObject = JSON.parse(jsonPerson);
Example 4: convert json object to array javascript
var as = JSON.parse(jstring);