gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
https://gchq.github.io/CyberChef
Apache License 2.0
29.3k stars 3.28k forks source link

Feature request: JSONata support for json transformation #1872

Open kekonn opened 3 months ago

kekonn commented 3 months ago

Is your feature request related to a problem? Please describe. I often find myself having to transform one json file into another (much like with XML and XSLT). JSONata is perfect for this, but I can't use it in Cyberchef, so I am always dependent on an external playground tool instead of my self hosted Cyberchef instance.

Describe the solution you'd like I would like a JSONata Operation to be added, where I can add a JSONata expression to be run on the input of the previous operation or recipe input, and the output is passed on to the next operation or recipe output

Describe alternatives you've considered I've looked at the included JsonPath operation to see if it's possible to use it in the same way, but I often come up against limitations. I also searched the Cyberchef issue tracker to see if this question was raised before.

Additional context There is a source-available jsonata playground on github already. It might be easy to integrate.