d86a4dee92
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> |
||
---|---|---|
.. | ||
.gitignore | ||
LICENSE | ||
README.md | ||
prettyjson.go |
README.md
prettyjson
JSON pretty print for Golang.
Example
import "github.com/hokaccha/go-prettyjson"
v := map[string]interface{}{
"str": "foo",
"num": 100,
"bool": false,
"null": nil,
"array": []string{"foo", "bar", "baz"},
"map": map[string]interface{}{
"foo": "bar",
},
}
s, _ := prettyjson.Marshal(v)
fmt.Println(string(s))
License
MIT