-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
5.0.5
Steps to reproduce:
- Go to item preprocessing and enter JSONPath.
- Use parameter
$.value.['{#JMXOBJ}']
- Use value:
{ "value":{ "name=\"PC|Ernesto\" enabled":"5" } }
- In test section use macro JMXOBJ as
name=\"PC|Ernesto\" enabled
Result:
**
cannot extract value from json by path "$.value.['name=\"PC|Ernesto\" enabled']": unsupported construct in jsonpath starting with: "\"PC|Ernesto\" enabled']"
Expected:
5
The beginning of the issue is that I am collecting JMX attributes as JSON
{ "{#JMXVALUE}":"5", "{#JMXTYPE}":"java.lang.Integer", "{#JMXOBJ}":"name=\"PC|Ernesto\" enabled", "{#JMXDESC}":"Attribute exposed for management", "{#JMXATTR}":"Value" },
The {#JMXOBJ} is escaped by default. There is no way to unescape it when giving it to item prototype.