modulepackage
0.0.0-20181106204727-c70e6bd5e26b
Repository: https://github.com/gobs/simplejson.git
Documentation: pkg.go.dev
# README
This is a fork of go-simplejson
Installation
$ go get github.com/gobs/simplejson
Documentation
http://godoc.org/github.com/gobs/simplejson
go-simplejson
a Go package to interact with arbitrary JSON
Importing
import github.com/bitly/go-simplejson
Documentation
Visit the docs on gopkgdoc
# Functions
Cast to Json{}.
DumpBytes convert Go data object to JSON []byte.
DumpString encode Go data object to JSON string.
EscapeHTML instruct DumpBytes/DumpString to escape HTML in JSON valus (if true).
Indent sets the indentation level (passed as string of spaces) for DumpBytes/DumpString.
Load loads JSON from `reader` io.Reader and return a new `Json` object.
LoadBytes load JSON from `body` []byte and return a new `Json` object.
LoadPartial load JSON from `body` []byte and return a new `Json` object.
LoadPartialString load JSON from `body` string and return a new `Json` object.
LoadString loads JSON from `body` string and return a new `Json` object.
this is an alias for json.Marshal, for clients that don't include encoding/json.
MustDumpBytes encode Go data object to JSON []byte (panic in case of error).
MustDumpString encode Go data object to JSON string (panic in case of error).
this is an alias for json.Unmarshal, for clients that don't include encoding/json.
returns the current implementation version.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
basic type for quick conversion to JSON
.
DumpOption is the type of DumpBytes/DumpString options.
this is an alias for json.RawMessage, for clients that don't include encoding/json.