metakirby5 / codi.vim

:notebook_with_decorative_cover: The interactive scratchpad for hackers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jq support?

alok opened this issue · comments

jq is a full language, and having the ability to eval json live and print it out would be amazing.

A small issue is that there are two inputs: the JSON to process and the jq expression to evaluate. We'd probably have to add some sort of argument handling for specifying the input JSON, as I'm assuming the input you want to actively work on is the jq expression.

A simple workaround is using your language of choice which has a jq library, and writing your script as a string in that. An example is below.

image