@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:
How can I create a json file
-
@naeem For a sensible answer, I need to know more information. Which JSON file is it and what is it for?
JSON file is easy to create, just click "Write to file", for example, with the name "my_file.json". You can find the content (syntax) of JSON here: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON