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
Hightouch is a data and AI platform for marketing and personalization. Icon
Hightouch is a data and AI platform for marketing and personalization.

Marketing needs data and AI. Give them Hightouch.

Find insights, run real-time campaigns, and build AI agents with all your data.
Learn More
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