It looks there is a JSON syntax in your code.
A common use of JSON is to read data from a web server, and display the data in a web page, JSON data is written as name/value pairs. Curly brackets indicates objects and square for Array
here is basic syntax
"test":[
{"fname":"abc", "lname":"xxx"},
{"fname":"pqr", "lname":"yyy"},
{"fname":"lmn", "lname":"zzz"}
]
var obj = JSON.parse(text);
document.getElementById("lbl1").innerHTML =
obj.employees[1].firstName + " " + obj.employees[1].lastName;