JSON stands for JavaScript Object Notation, and is a syntax for storing and exchanging data.
Since the JSON format is a text-based format, it can easily be sent to and from a server, and used as a data format by any programming language.
json_encode() - Used to encode a value to JSON formatjson_decode() - Used to decode a JSON object into a PHP object or an associative arrayEdit the code below and click Run to see the result live.