Skip to content Skip to sidebar Skip to footer

Postman : Parsing A Json Response, How Deep Can I Go Into The Response?

I'm currently trying to parse precisely a JSON response (using POSTMAN). The JSON response has the following structure (I use ... to skip irrelevant info): * { 'href': ..., 'of

Solution 1:

Oups ! sorry for the edit, I'm quite new to this. Here is the answer for this problem, The device.type attribute can be reached this way: body.entries[0].attributes['device.type']

There are some limitations though: - I can't use .attributes[2], 2 being the index of the element if 'attributes' could be seen as a table. - The syntax is particular, it doesn't work if we use double-quotes instead of single-quotes - I still don't know why it happens at this stage ... if someone knows, I'll be happy to read from him

Cheers

Alexandre

Post a Comment for "Postman : Parsing A Json Response, How Deep Can I Go Into The Response?"