This is an implementation of jq command written in Go language. You can also embed gojq as a library to your Go products. gojq is purely implemented with Go language and is completely portable. jq depends on the C standard library so the availability of math functions depends on the library. jq also depends on the regular expression library and it makes building scripts complex. gojq implements nice error messages for invalid query and JSON input. The error message of jq is sometimes difficult to tell where to fix the query. gojq does not keep the order of object keys. I understand this might cause problems for some scripts but basically, we should not rely on the order of object keys. Due to this limitation, gojq does not have the keys_unsorted function and --sort-keys (-S) option. gojq supports arbitrary-precision integer calculation while jq does not; jq loses the precision of large integers when calculation is involved.

Features

  • This is an implementation of jq command written in Go language
  • You can also embed gojq as a library to your Go products
  • gojq supports arbitrary-precision integer calculation
  • gojq fixes various bugs of jq
  • gojq supports reading from YAML input
  • gojq improves variable lexer to allow using keywords for variable names

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow gojq

gojq Web Site

Other Useful Business Software
Already Paying for an RMM? Get 50% Off Splashtop AEM Icon
Already Paying for an RMM? Get 50% Off Splashtop AEM

Switch to Splashtop AEM and save up to 50% in your first year

Automated OS and third-party patching for Windows and macOS, CVE prioritization with AI patch summaries, and built-in remote control that also supports Linux. Qualifying organizations switching from another RMM get up to 50% off year one.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gojq!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Frameworks

Registered

2023-01-20