In my previous post, I was talking about web service. Now I will take you to details of RESTful service (JSON). Before getting into details of web service, you need to understand about http request types like GET, POST etc. If you don’t understand these request don’t proceed further until you are clear with the concept as these are the building blocks.
GET method: This http request is used to get the data using http protocol. The basic example would be when you try to open www.google.com than a GET request is sent to google server. Google server in response will be sending html document of Home page to the browser.
POST method: This http request is used to submitting data over Internet. When a user submits user registration details than web browser sends POST method to the server with all the details.
You might want to see how it looks like GET method being fired in your browser. I am using firebug to display the request in below Image.
Here firstName, lastName are key & John, Doe are it’s values. So, Developers will be writing JSON parser within the application which can Interpret JSON response and display the content as and where required.