Hello,
I am extracting a JSON data set and trying to run discovery with LLD macros and item prototypes.
I believe it will work as is, except some of the JSON objects have brackets in the name such as "Voltage(V)" and I simply can't get past this as is due the following error:
1. Failed: cannot extract value from json by path "$.[?(@.Intf == "{$IF}")].Voltage"(V)"": unsupported construct in jsonpath starting with: ""(V)""
I have tried quotes around the entire name, only around the brackets, escaping the brackets.
I'm going to edit the script to simply remove the brackets and contained text as it isn't important; so this is more of a "if this was critical, how do I make this work?" kind of question.
Any ideas?
Cheers
I am extracting a JSON data set and trying to run discovery with LLD macros and item prototypes.
I believe it will work as is, except some of the JSON objects have brackets in the name such as "Voltage(V)" and I simply can't get past this as is due the following error:
1. Failed: cannot extract value from json by path "$.[?(@.Intf == "{$IF}")].Voltage"(V)"": unsupported construct in jsonpath starting with: ""(V)""
I have tried quotes around the entire name, only around the brackets, escaping the brackets.
I'm going to edit the script to simply remove the brackets and contained text as it isn't important; so this is more of a "if this was critical, how do I make this work?" kind of question.
Any ideas?
Cheers
Comment