PHP Manual
Function Reference
Other Basic Extensions
JSON
Introduction
Installing/Configuring
Predefined Constants
JsonException
JsonSerializable
JSON Functions
JsonSerializable::jsonSerialize
json_decode
JSON
PHP Manual
JSON Functions
Table of Contents
json_decode
— Decodes a JSON string
json_encode
— Returns the JSON representation of a value
json_last_error
— Returns the last error occurred
json_last_error_msg
— Returns the error string of the last json_encode() or json_decode() call
json_validate
— Checks if a string contains valid JSON