What it JSON?
What is HTTP POST?
HTTP POST is a request method of an Hypertext Transfer Protocol (HTTP) is used to create or update a resource on the server. The HTTP POST method is used to submit web forms and upload files and images to the server.
What MIME type should I use when posting JSON data to the server?
How to request JSON data from the server?
If your client expects JSON from the server, it must also send the Accept: application/json request header. If you don't send the Accept header, the server may return data in a different format. For example, if the server can handle both JSON and XML requests on the same API endpoint, setting the Accept request header to application/json will let the server know that the client is expecting JSON and will provide the data in that format rather than XML.
POST JSON Example
Example of sending JSON data to ReqBin echo URL.
The server response to our POST JSON request.