Created
April 22, 2022 15:53
-
-
Save trycf/c932304220899b7c2e1187759dcb1e82 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
jsondata = { | |
"included": [ | |
{ | |
"attributes": { | |
"carrier": "ABC", | |
"tracking_number": 991 | |
}, | |
"id": 881, | |
"type": "shipping_labels" | |
}, | |
{ | |
"attributes": { | |
"carrier": "DEF", | |
"tracking_number": 992 | |
}, | |
"id": 882, | |
"type": "shipping_labels" | |
} | |
] | |
}; | |
writeDump(jsondata); | |
</cfscript> | |
<cfloop array="#jsondata.included#" index="element"> | |
<cfoutput> | |
Line_item_id: #element.id#<br /> | |
Line_item_type: #element.type#<br /> | |
Line_item_carrier: #element.attributes.carrier#<br /> | |
Line_item_tracking_number: #element.attributes.tracking_number#<br /> | |
<hr> | |
</cfoutput> | |
</cfloop> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment