AnsweredAssumed Answered

Need help with parsing JSON

Question asked by poliver88 on Jun 6, 2018
Latest reply on Jun 6, 2018 by Jason Wood

{

    "data" :

    {

        "consignmentDetail" :

        [

            {

                "consignmentNumber" : "9305111728",

                "parcelNumbers" : [ "15976515779993" ]

            }

        ],

        "consolidated" : false,

        "shipmentId" : 276864393

    },

    "error" : null

}

I've managed to parse the "consolidated", "shipmentId" and "error" keys

 

what I'm struggling with right now are the "consignmentNumber" and "parcelNumbers" keys

 

Looking at manual I've tried

JSONGetElement ( $shipment_server_response ; "data.consignmentDetail[0]consignmentNumber" )
JSONGetElement ( $shipment_server_response ; "data.consignmentDetail[1]parcelNumbers" )


But this just gives me nothing, any tips?



Outcomes