Hello,
I have an array of objects that gets returned to me from a POST method. Within each object is another array. My goal is get only the first item of that nested array (the first item in the "heirarchy" array".
Here is an eaxample of what is returned.
{
"categories": [
{
"category_id": "10000000",
"group": "special",
"hierarchy": [
"Bank Fees"
]
},
{
"category_id": "10001000",
"group": "special",
"hierarchy": [
"Bank Fees",
"Overdraft"
]
},
{
"category_id": "10002000",
"group": "special",
"hierarchy": [
"Bank Fees",
"ATM"
]
},
{
"category_id": "10003000",
"group": "special",
"hierarchy": [
"Bank Fees",
"Late Payment"
]
}
]
}