Accessing a HTTP response JSON path with a period in the key


#1

I’m making an HTTP request and am able to access the JSON response in JSON paths/keys without periods, but not those with periods.

The JSON looks like this

    {
      "sensor" : {
        "pm2.5" : 10
        }
    }

I’ve tried the following, unsuccessfully:
{$response.sensor.pm2.5}
{$response.sensor."pm2.5"}
{$response.sensor[pm2.5]}
{$response.sensor["pm2.5"]}
{$response.sensor.pm2\.5}

Any ideas?


#2

Old thread… a workaround.


#3

Great workaround, thanks!