Fetching JSON Data

JsonObjectRequest and JsonArrayRequest class is used to create a json request. We specify the URL and then receive the json data in response. Same as string and image fetched above, we can fetch json data. So I am not giving its example as you can easily do yourself.

Sending Data

For sending some data we have to use post request and override getParams() method. The data is sent in key value pairs. It can be done in following way.