@mak0ni I think a single JSONPath expression cannot perform such a complex task.
You could use two JSONPath expressions and combine them,
or use the following JavaScript code:
Cannot convert basic JSON to string with the JSON module
-
I can't make the string to JSON work even with the basic example: {"a":"b"}.
I have exactly that written in a file called test.txt.
I read it with the readfile module
then I get "{"a":"b"}".
Then string to json module fails. -
@samuelnihoul said in Cannot convert basic JSON to string with the JSON module:
I can't make the string to JSON work even with the basic example: {"a":"b"}.
I have exactly that written in a file called test.txt.
I read it with the readfile module
then I get "{"a":"b"}".
Then string to json module fails.var parsed = JSON.parse(some_string_value); -
OK thanks