how to i cast a json array of an object in javascript code example Example: convert json object to array javascript var as = JSON.parse(jstring);