json decode php javascript equivalent code example Example: json_decode javascript JSON.parse(jsonToDecode)