What is JSON?
JSON (JavaScript Object Notation) is a lightweight text-based, language-independentf data exchange format. Despite its origins in JavaScript, this format is considered language-independent; JSON can use with almost any programming language, including JavaScript, Java, C ++, C #, Go, PHP, Python, and many others.
How to decode JSON string into PHP object?
You can use the json_decode() function to convert JSON strings into PHP objects. The result object can be any PHP data type, including an array, except for resource pointers such as a database or file descriptor.