How to generate a JSON request from a couch template?
If the data output is in the format:
the above is a GET request!
Regards,
GenXCoders
If the data output is in the format:
- Code: Select all
{"doctorList":[{"reviews":"Nice","sex":"Male","subCategory":"ONCOLOGIST","speciality":"CANCER","timings":"10AM-5PM","password":null,"id":1,"qualification":"MD","email":"madan@gmail.com","address":"Nagpur","age":32,"name":"Dr. Madan","longitude":22.3,"experience":3,"rating":2.5,"lat":21.9,"mobileNo":"9090909090","regId":123},{"reviews":"Good","sex":"Male","subCategory":"GENERAL","speciality":"COLD","timings":"10:00 AM - 12:00 PM","password":null,"id":2,"qualification":"MBBS","email":"akshay.patre@gmail.com","address":"74. shahu nagar","age":42,"name":"Dr.Akshay","longitude":67,"experience":10,"rating":2,"lat":92,"mobileNo":"9823051718","regId":356788},{"reviews":"Ok","sex":"Male","subCategory":"COSMETOLOGIST","speciality":"SKIN","timings":"10:00 AM - 12:00 PM","password":null,"id":3,"qualification":"MD","email":"yusuf@gmail.com","address":"Wardha","age":26,"name":"Dr.Yusuf","longitude":67,"experience":4,"rating":2,"lat":92,"mobileNo":"9823461052","regId":100},{"reviews":"Good","sex":"Male","subCategory":"ONCOLOGIST","speciality":"CANCER","timings":"10AM-5PM","password":null,"id":4,"qualification":"MD","email":"ankit.rathi@gmail.com","address":"Patna","age":32,"name":"Dr. Rathi","longitude":22.3,"experience":9,"rating":2.5,"lat":21.9,"mobileNo":"9090909090","regId":909},{"reviews":"GOOD","sex":"Male","subCategory":"ONCOLOGIST","speciality":"CANCER","timings":"10AM - 5AM","password":null,"id":5,"qualification":"MS","email":"jaipy.fabled88@gmail.com","address":"Flat No-3, Rawal Apartments","age":26,"name":"Hemant Varhekar","longitude":79,"experience":3,"rating":2,"lat":21,"mobileNo":"9730687666","regId":10}]}
the above is a GET request!
Regards,
GenXCoders