how to jscon decode an array from response in javascript code example Example: json_decode javascript JSON.parse(jsonToDecode)