# \[Solved\] Help with JSON response

**URL:** <https://community.thunkable.com/t/solved-help-with-json-response/2593459>\
**Category:** Web API's\
**Tags:** beginner, help, json\
**Created:** [September 13, 2023, 1:41pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459 "2023-09-13T13:41:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vernon07ul61](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vernon07ul61](https://community.thunkable.com/u/vernon07ul61)\
**Post date:** [September 13, 2023, 1:41pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459/1 "2023-09-13T13:41:20Z")

</div>

i am struggling to get the “ID” value from the “Items”

Sorry, i am very new to this…

herewith my JSON response

```auto
{
    "Status": {
        "APIVersion": "2.1.1332.1",
        "Success": true,
        "Token": {
            "Status": {
                "Value": 1,
                "EnumType": "TokenStatusEnum"
            },
            "ExpiresDateTime": "2023-09-13T19:22:33.53",
            "UserID": 34
        }
    },
    "Details": {
        "TotalItemCount": 1,
        "ReturnedItemCount": 1,
        "TimeStamp": null,
        "Items": [
            {
                "ID": 18806,
                "PurchaseOrderNo": "10209",
                "SupplierID": 17,
                "CreatedDateTime": "2023-09-08T00:00:00+02:00",
                "DueDateTime": "2023-09-08T00:00:00+02:00",
                "PurchaseOrderReference": null,
                "Status": {
                    "Value": 2,
                    "EnumType": "PurchaseOrderStatusEnum"
                },
                "DeliveryCode": null,
                "DeliveryAddress": ",
                "JobNo": null,
                "CreatedBy": "Quintus Malan",
                "Value": {
                    "Net": 4637.7,
                    "Tax": 695.66,
                    "Gross": 5333.36
                },
                "ModifiedDateTime": "2023-09-11T10:40:02.58+02:00",
                "ModifiedByUserID": 33,
                "CompletedDateTime": "1998-01-01T00:00:00+02:00",
                "DeliveryAddressType": {
                    "Value": 4,
                    "EnumType": "PurchaseOrderDeliveryAddressTypeEnum"
                },
                "DeliveryInstructions": null,
                "Lines": [
                    {
                        "ID": 23524,
                        "LineNumber": 1,
                        "Memo": null,
                        "ProductID": 1808,
                        "ProductCode": "HSE MATT 130",
                        "ProductDescription": "Coated Matt 130gsm",
                        "IsBatchControlled": false,
                        "Quantity": 5000.0,
                        "TonnesQuantity": 0.0,
                        "UnitPrice": 927.54,
                        "Value": {
                            "Net": 4637.7,
                            "Tax": 695.66,
                            "Gross": 5333.36
                        },
                        "JobNo": null,
                        "Status": {
                            "Value": 2,
                            "EnumType": "PurchaseOrderStatusEnum"
                        },
                        "QuantityDelivered": 5000.0,
                        "TonnesDelivered": 0.0,
                        "QuantityInvoiced": 0.0,
                        "TonnesInvoiced": 0.0,
                        "ConversionRequired": false,
                        "DueDateTime": "2023-09-08T00:00:00+02:00",
                        "SalesOrderNo": null,
                        "Units": "/1000",
                        "PurchaseUnits": "/1000",
                        "GoodsReceivedUnits": {
                            "Value": 0,
                            "EnumType": "GoodsReceivedUnitsEnum"
                        },
                        "ConvertToType": {
                            "Value": 0,
                            "EnumType": "GoodsReceivedConvertToTypeEnum"
                        },
                        "ConversionRatio": 1.0
                    }
                ]
            }
        ],
        "Success": true,
        "Reasons": null,
        "Exceptions": null
    }
}

```

 ![Blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/9733f0d57b264b1c78ac2c013e23dfa9922a1850.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 13, 2023, 2:02pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459/2 "2023-09-13T14:02:00Z")

</div>

When I paste your JSON into [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer), it says it’s not valid JSON. Can you assign the green `response` block to a Text Input’s Text and then copy and paste the full response again into a post here?

If you haven’t seen my JSON tutorial, it’s a good starting point for learning to parse JSON: [API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 13, 2023, 2:04pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459/3 "2023-09-13T14:04:36Z")

</div>

And actually, I think the fix is to get the “Details” property from the object and _then_ get the “Items” property of the 1st list item from that and then get the “ID” property from that. Or, you can just get the property “Details.Items[1].ID” as a shortcut and you don’t need the list block or multiple `get property of object` blocks.

---

<div class="post-metadata">

**Author:** ![vernon07ul61](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vernon07ul61](https://community.thunkable.com/u/vernon07ul61)\
**Post date:** [September 13, 2023, 2:18pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459/4 "2023-09-13T14:18:12Z")

</div>

Thank you, all is working now.

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [September 13, 2023, 2:32pm UTC](https://community.thunkable.com/t/solved-help-with-json-response/2593459/5 "2023-09-13T14:32:22Z")

</div>


