Feature request: Embed within a JSON object (reverse JPath)
tim-hitchins-ekkosense opened this issue · 0 comments
tim-hitchins-ekkosense commented
Is your feature request related to a problem? Please describe.
I have a pipeline which is
- Extract a string from a JSON object with the
JPath
operation - Decode the string as Base64
- Inflate the binary data with ZLIB inflate
This recipe can be found here
But I'd like to do the reverse
- Deflate a string with ZLIB deflate
- Encode that binary data as Base64
- Embed that string within a JSON object
That last step is not possible right now
Describe the solution you'd like
I would like a step which can take the previous step's output string, and embed it within a provided JSON object. For example, the step's input could be
{"data": $1}
and it would substitute the $1 for the step input
Describe alternatives you've considered
A workaround is to manually embed the string within the JSON parts {"data":"
and "}
via find and replace:
Additional context