'How Can one Get Values from Arrays within a Array in Liquid

So I'm trying to extract the DiscountsModels.DisplayMessage but I'm not getting it on how to get it out in Liquid. Below is my incoming Json Message. i'm Trying to just loop through the whole thing down to DisplayMessage but I don't know if that's the wrong process.

{
    "content":{
    "Name": "string",
    "Version": "string",
    "Sender": "string",
    "Content": {
        "OrderNumber": "string",
        "OrderGroupId": 0,
        "AffiliateId": "string",
        "BillingCurrency": "string",
        "CustomerId": "string",
        "CrmId": "CrmId",
        "CustomerName": "string",
        "HandlingTotal": 0,
        "MarketId": "string",
        "Name": "string",
        "Owner": "string",
        "OwnerOrg": "string",
        "ShippingTotal": 20,
        "Status": "string",
        "SubTotal": 0,
        "TaxTotal": 10,
        "Total": 0,
        "Modified": "string",
        "Created": "string",
        "Properties": [
            {
                "Key": "string",
                "Value": "2019-01-01T12:00:00.000Z"
            }
        ],
        "Forms": [
            {
                "ReturnComment": "string",
                "ReturnType": "string",
                "ReturnAuthCode": "string",
                "OrderFormId": 0,
                "Name": "string",
                "ReceiptNumber": "string",
                "BillingAddressId": "string",
                "ShippingTotal": 0,
                "HandlingTotal": 0,
                "TaxTotal": 0,
                "DiscountAmount": 0,
                "SubTotal": 0,
                "Total": 123,
                "Status": "string",
                "AuthorizedPaymentTotal": 0,
                "CapturedPaymentTotal": 0,
                "Properties": [
                    {
                        "Key": "string",
                        "Value": "string"
                    }
                ],
                "Payments": [
                    {
                        "Amount": 0,
                        "AuthorizationCode": "string",
                        "CustomerName": "string",
                        "PaymentId": "Klarna",
                        "PaymentMethodId": "string",
                        "PaymentMethodName": "string",
                        "PaymentTypeModel": "string",
                        "Status": "string",
                        "TransactionType": "string",
                        "ValidationCode": "string",
                        "Properties": [
                            {
                                "Key": "string",
                                "Value": "string"
                            }
                        ]
                    }
                ],
                "Shipments": [
                    {
                        "ShipmentId": 0,
                        "ShippingMethodId": "string",
                        "ShippingMethodName": "string",
                        "ShippingTax": 0,
                        "ShippingAddressId": "string",
                        "ShipmentTrackingNumber": "1234213123",
                        "ShippingDiscountAmount": 0,
                        "ShippingSubTotal": 0,
                        "ShippingTotal": 0,
                        "Status": "string",
                        "PrevStatus": "string",
                        "PickListId": "string",
                        "SubTotal": 0,
                        "WarehouseCode": "string",
                        "PickupPoint": "string",
                        "Properties": [
                            {
                                "Key": "string",
                                "Value": "string"
                            }
                        ],
                        "DiscountsModel": [
                            {
                                "DiscountId": 0,
                                "DiscountAmount": 0,
                                "DiscountCode": "string",
                                "DiscountName": "VipRabatt",
                                "DisplayMessage": "VipRabatt",
                                "DiscountValue": 0
                            }
                        ],

This is my code but I'm not getting it to work

 {% for Shipments in content.Content.Forms {% for DiscountsModel in Shipments.Shipment {% for DiscountsInfo in DiscountsModel.DiscountsModel %}
        "PromotionDescription": "{{DiscountsInfo.DisplayMessage}}",        
        
    {% endfor %} %}
        
    {% endfor %}%}

I've tried to search on the internet but I'm a little lost does anyone have the Correct approach or some kind of solution on how to think on this subject.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source