how to turn an api object into an array of json code example Example: convert json object to array javascript var as = JSON.parse(jstring);