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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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