Skip to content

thejsj/go-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoJSON

JSON parser in Go.

$ echo '{ "hello": { "wow" : "value", "yo": 1 }, "arr" : [1, 2, 3, 4.423423] }' | ./go-json
2015/10/12 23:21:32 map[hello:map[wow:value yo:1] arr:[1 2 3 4.423423]]

ParseJSON

You can use the ParseJSON function by itself:

impot "github.com/thejsj/go-json/parser"
parsedJSON, err := parser.ParseJSON("{ \"hello\": 1 }")
  • Save to JSON file
  • Pretty print to STDOUT
  • STDERR if there's an error
  • Switch away from interface {}

Testing

go test ./...

About

A JSON parser in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages