Posts

Showing posts from July, 2015

Read and write json file with php and mysql

Image
JavaScript Object Notation or JSON is a lightweight data-interchange format which is very easy to read and write, we use JSON to transfer data from server to web-application or vice versa as an alternative to XML. In this post I will be showing you how to read and write JSON file with php and mysql. What is json? How does it looks?  JSON is nothing but a data format similar like arrays. It comes in key value pair e.g. {Name:Rahul, Age:22}. JSON is a human-readable text format that is completely language independent but uses conventions of programming language like C, C++, JavaScript. See how JSON data looks like. [ { "player_name": "Sachin Tendulkar", "country": "India", "sports": "Cricket" }, { "player_name": "Roger Federer", "country": "Switzerland", "sports": "...