Home >>Json Tutorial
PHPTPOINT provides deep knowledge of JSON language. This JSON tutorial for beginners not only helps beginners as well as also helpful for professionals. This JSON tutorial will help you to learn JSON fundamentals, examples, syntax, array, object, encode, decode, file, date and date format.
With this JSON tutorial, you can learn with examples and with other technologies such as PHP, Python, jQuery, AJAX and many more, we will also teach you how to convert json to xml, html, csv, php array and vice versa
It stands for the JavaScript Object Notation. It is used to exchanging and storing the data from the web-server. It uses the object notation of JavaScript. JavaScript objects can be change into the JSON and receive its format text into the JavaScript objects.
Example : with this tutorial, we will give you many examples to understand the topic well. JSON file should have save with its extension. Let's see a simple example.
File Name : first_json_program.json
{"employees":[ {"name":"Neetu", "email":"neetu@gmail.com"}, {"name":"Sonu", "email":"sonu3212@gmail.com"}, {"name":"Abhishek", "email":"abhishek@gmail.com"} ]}
PHP also permit us to encode and decode JSON with the help of json_encode() and json decode functions.
1) json_encode()
2) json_decode()
Sr.No. | Topics |
---|---|
1 | JSON Introduction |
2 | PHP JSON Example |
3 | Insert JSON data MySQL |
4 | Getting data from MySQL into JSON using PHP |