Forum Discussion

ligi's avatar
6 days ago

Greentree API response - array of objects problem

when calling the api, is it possible to return a JavaScript object rather than an array of objects e.g.

[
    {
        "JCJobs": [
            {

                "Edition": 24,
                "OidString": "3318.26",
             },

            {

                "Edition": 25,
                "OidString": "3318.27",
             }

        ]
    }
]

i need to remove the outer [ ] as the scenario I have means I cannot modify the response before using it and I need to

No RepliesBe the first to reply