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

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
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