Hi All
I am calling an API whereby the JSON Scheme has the data located in the cells part under the field textValue which is related to my 3 headers and need help deconstructing it to get the text value out so I can save it to a database.
Thank you in advance. 🙏

JSON Scheme below:
{
"type": "object",
"properties": {
"body": {
"type": "object",
"properties": {
"d": {
"type": "object",
"properties": {
"header": {
"type": "array",
"items": {
"type": "object",
"properties": {
"displayName": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"required": [
"displayName",
"uri"
]
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cells": {
"type": "array",
"items": {
"type": "object",
"properties": {
"dataType": {
"type": "string"
},
"textValue": {
"type": "string"
},
"objectType": {
"type": "string"
},
"uri": {
"type": "string"
},
"dateValue": {
"type": "object",
"properties": {
"day": {
"type": "integer"
},
"month": {
"type": "integer"
},
"year": {
"type": "integer"
}
}
}
},
"required": [
"dataType",
"textValue"
]
}
}
},
"required": [
"cells"
]
}
}
}
}
}
}
}
}
HTTP output sample data:
{
"statusCode": 200,
"headers": {
"Transfer-Encoding": "chunked",
"Connection": "keep-alive",
"x-execution-correlation-id": "ab331ac7647fc231df13b",
"x-frame-options": "SAMEORIGIN",
"strict-transport-security": "max-age=31536000",
"content-security-policy": "frame-ancestors 'self' https://psa-eu1.Gizmo.com https://ti.Gizmo.com https://zt.Gizmo.com;",
"vary": "Accept-Encoding",
"CF-Cache-Status": "DYNAMIC",
"CF-RAY": "80eb9008f-AMS",
"Date": "Sat, 30 Sep 2023 09:53:52 GMT",
"Server": "cloudflare",
"Content-Type": "application/json; charset=utf-8",
"Content-Length": "8363"
},
"body": {
"d": {
"header": [
{
"displayName": "Holiday Name",
"uri": "urn:Gizmo:holiday-list-column:holiday-name"
},
{
"displayName": "Holiday Calendar",
"uri": "urn:Gizmo:holiday-list-column:holiday-calendar"
},
{
"displayName": "Holiday Date",
"uri": "urn:Gizmo:holiday-list-column:date"
}
],
"rows": [
{
"cells": [
{
"dataType": "urn:Gizmo:list-type:string",
"textValue": "Africa Day"
},
{
"dataType": "urn:Gizmo:list-type:object",
"objectType": "urn:Gizmo:object-type:holiday-calendar",
"textValue": "Zambia",
"uri": "urn:Gizmo-tenant:1af2670c0:holiday-calendar:44"
},
{
"dataType": "urn:Gizmo:list-type:date",
"dateValue": {
"day": 25,
"month": 5,
"year": 2023
},
"textValue": "2023/05/25"
}
]
},
{
"cells": [
{
"dataType": "urn:Gizmo:list-type:string",
"textValue": "All Saints' Day"
},
{
"dataType": "urn:Gizmo:list-type:object",
"objectType": "urn:Gizmo:object-type:holiday-calendar",
"textValue": "France",
"uri": "urn:Gizmo-tenant:2a3c370c0:holiday-calendar:4"
},
{
"dataType": "urn:Gizmo:list-type:date",
"dateValue": {
"day": 1,
"month": 11,
"year": 2018
},
"textValue": "2018/11/01"
}
]
},
{
"cells": [
{
"dataType": "urn:Gizmo:list-type:string",
"textValue": "All Saints' Day"
},
{
"dataType": "urn:Gizmo:list-type:object",
"objectType": "urn:Gizmo:object-type:holiday-calendar",
"textValue": "France",
"uri": "urn:Gizmo-tenant:62e11e2a3c370c0:holiday-calendar:4"
},
{
"dataType": "urn:Gizmo:list-type:date",
"dateValue": {
"day": 1,
"month": 11,
"year": 2019
},
"textValue": "2019/11/01"
}
]
}