skip to Main Content

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

C# Deserialize JSON from API

I have models public class MainResponse { public bool IsSuccess { get; set; } public string? ErrorMessage { get; set; } public object? Content { get; set; } } public class Person { public int Id { get; set; }…

VIEW QUESTION

Converting JSON response into Tables in ORacle database

{ "general": { "product_key": "501088", "group_subtype_id": 1, "group_subtype_name": "Wheel Speed Sensor", "variant_id": 6, "variant_name": "DF22", "rb_customer_id": 287383 }, "partnumbers": [ { "partnumber": "F04FD009BD", "pn_type": "Series OEM", "mat_status": "00 - planned", "properties": [ {"property_id":4,"property_name":"ASIC P/N","value_id":38,"value":"8905502648"}, {"property_id":5,"property_name":"ASIC type","value_id":56,"value":"TLE4942"}, {"property_id":6,"property_name":"Axle","value_id":62,"value":"Front / Rear Right"},…

VIEW QUESTION

Translate JSON TO TABLES using JSON TABLE and Nested Path

select JT.* FROM JSON_TABLE ('{ "general": { "product_key": "501088", "group_subtype_id": 1, "group_subtype_name": "Wheel Speed Sensor", "variant_id": 6, "variant_name": "DF22", "rb_customer_id": 287383 }, "partnumbers": [ { "partnumber": "F04FD009BD", "pn_type": "Series OEM", "mat_status": "00 - planned", "properties": [ {"property_id":4,"property_name":"ASIC P/N","value_id":38,"value":"8905502648"}, {"property_id":5,"property_name":"ASIC type","value_id":56,"value":"TLE4942"},…

VIEW QUESTION
Back To Top
Search