gjson is a Go JSON parser designed for schema-less reading and value extraction. It allows for the retrieval of specific data from JSON documents using dot-notation paths without requiring the definition of predefined Go structs.
The library provides tools for path-based querying, including the use of wildcards and index-based queries to locate data within objects and arrays. It also functions as a JSON lines processor, treating multi-line documents as arrays to iterate and query individual entries.
Additional capabilities include converting JSON values into native Go types such as strings, floats, booleans, maps, or slices. The toolset also covers JSON syntax validation, array searching with comparison operators, and the ability to reshape or transform JSON data into new structures.