DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

Feature Idea: Interactive jq

Open rdavison opened this issue 2 years ago • 4 comments

What's the Problem?

Would be nice to have an interactive jq editor.

Solution/Idea

It could be implemented in a similar way to the Regex editor.

Alternatives

Not have an interactive jq editor.

Priorities

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

DevToys Version

No response

Comments

No response

rdavison avatar Jun 27 '22 19:06 rdavison

What is "jq"?

jamescurran avatar Aug 03 '22 22:08 jamescurran

+1. What is "jq" ?

veler avatar Mar 18 '23 06:03 veler

@veler , I think @rdavison meant something similar to this :https://jqplay.org/ and for jq reference: https://jqlang.github.io/jq/manual/ yq is also a very similar and helpful tool: https://github.com/mikefarah/yq

KarlCF avatar Mar 12 '24 09:03 KarlCF

Comparing the two repos cited: jq: written in C, works on JSON files, has more commands. yq: written in golang, works on json, xml, properties, csv and tsv files, has fewer commands than jq.

jq's C code, like most C code, rolls its own methods for memory management, and things like linked lists. The major task in porting the code to C# would be stripping out that and making use of native features of the .NET library.

I do not know enough about golang to evaluate what would be needed in a port (heck, I'm not even sure it's golang --- I'm basing that just of the .GO file extensions)

jamescurran avatar Mar 12 '24 16:03 jamescurran