Registry / serialization / tidwall-pretty

tidwall-pretty

JSON →
library1.2.1gogounverified

Provides pretty-printing and formatting for JSON data.

go get github.com/tidwall/pretty
INSTALL
IMPORT
SIG · TIDWALL-PRETTY
T
tidwall-pretty
serializationgov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pretty
github.com/tidwall/pretty

Pretty-prints a JSON byte slice.

package main import ( "fmt" "github.com/tidwall/pretty" ) func main() { ugly := []byte(`{"a":1,"b":2}`) prettyJSON := pretty.Pretty(ugly) fmt.Println(string(prettyJSON)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
tidwall-pretty — go get tidwall-pretty · libregistry