8000 GitHub - funnylookinhat/easyjson: Easily consume JSON in Go. · GitHub
[go: up one dir, main page]

Skip to content
funnylookinhatPublic

About

Easily consume JSON in Go.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

easyjson

Quickly consume JSON in Go.

Build Status

While defining structs is a great means to generate a JSON API, it's a bit annoying when you want to consume some arbitrary JSON from another server.

This makes that easier.

someJson := `
{
	"some": {
		"nested": {
			"path": "a string!"
		}
	}
}`

data, err := easyjson.DecodeJson([]byte(someJson))

if err != nil {
	log.Fatal(err)
}

someString, err := easyjson.GetString(data, "some, "nested", "path")

// Prints "a string!"
fmt.Printf("%s", someString)

About

Easily consume JSON in Go.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0