It should be array of objects but its returning a single object

Tagged:

Currently contains 2 posts

Avatar

27 Sep, 2015 10:21AM

gondar00

in the min fare we have a field called extra
“[{’duration’: u’2h 15m’, ‘arrtime’: u’2015-09-30t2310’, ‘nostops’: 0, ‘deptime’: u’2015-09-30t2055’, ‘flightno’: u’AI127’}]”
it should be “[{duration: ‘2h 15m’},{ arrtime: ‘2015-09-30t2310’}, {nostops: 0}, {deptime: ‘2015-09-30t2055’}, {flightno: ’AI127’}]”
so that i can access a particular attribute

Avatar

27 Sep, 2015 08:11PM

vikalpsahni

Thanks for the heads up. Will check with teams and would share updates.

But the version upgrades would not be sometime really soon and would always give time for old api to deprecate. For now hence suggest you use the same response structure to process.

Reply to thread