[progress Communities] [progress Openedge Abl] Forum Post: Urgent Help To Catch Rest Input...

  • Thread starter Thread starter Vandna.Kansal
  • Start date Start date
Status
Not open for further replies.
V

Vandna.Kansal

Guest
Hi, I have the request in below JSON format and want to catch the response in temp-table within a dataset. { "request": { "ProductCode": "MUHOT00001", "productName": "Hotel K+K", "CheckInDate": null, "Duration": 0, "Video": [ "abc1.mp4", "abc2.mp4", "abc3.mp4", "abc4.mp4" ], "prop_pics": [{ "ProductCode": "MUHOT00001", "Prop_Url": "001room_1.jpg", "Prop_Title": "delux room" }, { "ProductCode": "MUHOT00001", "Prop_Url": "001room_2.jpg", "Prop_Title": "delux room" }], "room_types": [{ "name": "Deluxe Room", "boardtype": "Half board", "occupancy": "2", "points": "1300+10" }, { "name": "Apartment Room", "boardtype": "Full board", "occupancy": "6", "points": "1300+8" }, { "name": "Twin Room", "boardtype": "Half board", "occupancy": "4", "points": "1300+15" }, { "name": "Suite", "boardtype": "Full board", "occupancy": "2", "points": "1300+20" }] } } When I catch the above request in separate input parameters then the values of video and prop_pics are like: Video = ["abc1.mp4","abc2.mp4","abc3.mp4","abc4.mp4"] prop_pics = [{ "ProductCode": "MUHOT00001", "Prop_Url": "001room_1.jpg", "Prop_Title": "delux room" }, { "ProductCode": "MUHOT00001", "Prop_Url": "001room_2.jpg", "Prop_Title": "delux room" }] But I need to get all the values of prop_pics object ( ProductCode, Prop_Url and Prop_Title). And I find no better way to read the values of prop_pics. So, Is it possible to map the request to a temp-table with in a dataset ?

Continue reading...
 
Status
Not open for further replies.
Back
Top