I have calls that return me an xml. To navigate the response, I first convert it to JSON with the following:
var jsonObject = xml2Json(responseBody);
I then address its parts with variables hierarchically like this:
var x = jsonObject[‘x’]
var y = x[‘y’]
My goal is to use the test script to figure out how many elements the x-array has, i.e. how many y-blobs there are (how many y children of the main x object).
I tried with
and the previous definition of x, but in this case I get null.
Can anyone help? Thanks!!!