1) Give a description of the problem
An HTTP get response includes spaces in the key value field. I am unable to write a ‘set variable’ expression to match the key field to then directly extract the value.
A working example of this approach where the response does not contain a space is:
[obs:[air_temperature]]
With an expression of: {($response.obs.air_temperature)}
Here is the problematic response structure:
[Global:[AB CDE:value]]
The key is “AB CDE”, so includes a space between B and C.
I could use indexof and replace to pull the required value, but this would take multiple steps.
I tried placing quotes around the key value but this just errors.
2) What is the expected behaviour?
Is there a way to parse the reponse directly using the key value ?
3) What is happening/not happening?
Because the response includes spaces my expression errors.
4) Post a Green Snapshot of the piston
Can be provided if needed?