Number in Json Path

Hi,

I have a JSON which looks like:
{“abc”:{“123”:{“def”:“value”}}}

When trying to get the value by pm.response.json().abc.123.def I am getting an error: “A leading decimal point can be confused with a dot” in the test editor in Postman.

Can somebody please tell me how to access the value in the defined path.

Hey @karlsponholz, have you tried using the bracket notation to access the object with the number as key?

Something like:

pm.response.json().abc['123'].def

If this doesn’t work, parse the response first before accessing the child properties, considering it is a string response.