github.com/tidwall/gjson

GJSON

Package gjson provides searching for json strings.

94

Decision Signals

Health score 94/100, confidence 100/100.

Excellent
Maintenance 90
Adoption 100
Security 92
Maturity 94
Developer DX 91
Confidence 100

Install

go get github.com/tidwall/gjson

Package Data

updated May 28, 2026
Latest versionv1.19.0
Imported by10.4K packages
Stars15.5K
Forks897
Last activity13 days ago
Latest releaseUnknown
LicenseMIT
Known vuln records0

API Surface

51 symbols
SymbolKindSynopsis
Result Type type Result struct{ ... }
Get Function func Get(json, path string) Result
GetBytes Function func GetBytes(json []byte, path string) Result
GetMany Function func GetMany(json string, path ...string) []Result
GetManyBytes Function func GetManyBytes(json []byte, path ...string) []Result
Parse Function func Parse(json string) Result
ParseBytes Function func ParseBytes(json []byte) Result
Result.All Method func (t Result) All() iter.Seq2[Result, Result]
Result.Array Method func (t Result) Array() []Result
Result.Bool Method func (t Result) Bool() bool
Result.Exists Method func (t Result) Exists() bool
Result.Float Method func (t Result) Float() float64

Similar Packages

Go JSON Libraries

#1 fastjson

Package fastjson provides fast JSON parsing.

Go JSON Libraries 0 stars 895 imported-by 80% confidence
73

#2 jsoniter

Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json.

Go JSON Libraries 13.9K stars 0 imported-by 45% confidence
62

#3 codec

Package codec provides a High Performance, Feature-Rich Idiomatic Go codec/encoding library for binc, msgpack, cbor, json.

Go JSON Libraries 0 stars 0 imported-by 55% confidence
50

#4 bel

Generate TypeScript interfaces from Go structs/interfaces. Useful for JSON RPC.

Go JSON Libraries 0 stars 2 imported-by 80% confidence
44

#5 jsonhandlers

JSON library to expose simple handlers that lets you easily read and write json from various sources.

Go JSON Libraries 0 stars 0 imported-by 80% confidence
42