Skip to content

funnylookinhat/easyjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages