gchq / gchq/CyberChef

Feature request: JSONata support for json transformation

Open
#1,872 0 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

**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](https://jsonata.org/) 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](https://github.com/jsonata-js/jsonata-exerciser) on github already. It might be easy to integrate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.