php - Not able to Fetch Data From Above Link JSON in android -
{"_id":{"$id":"58df84b0159d113438f397aa"},"expiry_date":{"sec":1522579504,"usec":407000},"website":"a.com","email":"pravin_naik89@rediffmail.com","mobile":"9011373730","shop_name":"skynet servixes","user_id": {"$id":"58c9127dc2ae8268e752cafb"},"last_updated":{"sec":1491043504,"usec":401000},"approval":0,"register_date":{"sec":1491043504,"usec":401000},"home_delivery":"0","shop_time":{"holiday":"sunday","time_to":"07:00 ","time_from":"10:00 "},"images":{"shop_img1":"79f525d0-a8e8-7763-ee29-b67304b0822f.jpg"},"category":["electronics"],"address":{"longitude":"74.40432518720627","latitude":"16.615792240860504","city":"kolhapur","address":"hupari"},"__v":0} {"_id":{"$id":"58e4ab46ed803b2178f77254"},"expiry_date":{"sec":1522917062,"usec":162000},"website":"","email":"amol@gmail.com","mobile":"7276477850","shop_name":"gurukrupa enter","user_id":{"$id":"58d634cb558fa13ed3eed97b"},"last_updated":{"sec":1491381062,"usec":159000},"approval":0,"register_date":{"sec":1491381062,"usec":159000},"home_delivery":"0","shop_time":{"holiday":"none","time_to":"09:00 ","time_from":"10:00 "},"images":{"shop_img1":"12a790fd-58af-c45d-d885-0aeb68bad1fd.jpg"},"category":["electronics"],"address":{"longitude":"74.2438004","latitude":"16.6991044","city":"kolhapur","address":"kolhapur"},"__v":0}
this result php webservices. how can fetch data local android json object....???
this how can json response jsonobject
jsonobject jsonobject = new jsonobject(response); jsonobject responseobject = jsonobject.getjsonobject(rootobjectname);
before using above 2 lines:
response must converted string form.
rootobjectname name of outermost jsonobject in json response.
note- json string have posted invalid.
Comments
Post a Comment