php json_encode encode ready for javascript decode code example Example: json_decode javascript JSON.parse(jsonToDecode)