skip to Main Content

Javascript : Find node value through recursive iteration

I have the following structure : var content = { "id": "RkktMTA1OC0wNTE3QElNQi82NTAwNC9YLzAwSDc", "name": "FI-1058-0517", "category": "FTTH", "place": { "id": "SU1CLzY1MDA0L1gvMDBINw", "href": "/geographicSite/SU1CLzY1MDA0L1gvMDBINw", "name": "IMB/65004/X/00H7", "isSiteInfoAvailable": true, "place": [ { "geographicSubAddress": [ { "internalBuildingReference": "SSS0100000000000198332600", "internalFloorReference": "", "buildingName": "_NA_", "levelNumber": "0",…

VIEW QUESTION

Javascript – How to validate JSON response using JSON test data file?

Having JSON response with nested elements. I would like to validate it against JSON test data using Postman and test functions. For the moment I can easily reach it by hardcoding: const jsonData = pm.response.json(); pm.expect(jsonData.items[0].title).to.eql(pm.iterationData.get("title")); pm.expect(jsonData.items[1].title).to.eql(pm.iterationData.get("title")); here is my…

VIEW QUESTION

Json – How to flatten a list of objects in python

I have a list of objects : [ { "person": "abc", "city": "united states", "facebooklink": "link", "address": "united states", "united states": [ { "person": "cdf", "city": "ohio", "facebooklink": "link", "address": "united states/ohio", "ohio": [ { "person": "efg", "city": "clevland", "facebooklink":…

VIEW QUESTION
Back To Top
Search