How to implement rest.api + JSON to work with databases?

Product data will be taken from the database during queries will be given Rest API . The data in the JSON format.
July 9th 19 at 10:49
1 answer
July 9th 19 at 10:51
Take a sniffer and see how others have done, for example, otvet.mail.ru AJAX works with the REST API response format is JSON.

Find more questions by tags JSONRESTful API