ARO-RP/vendor/github.com/ajeddeloh/go-json
Jim Minter 561fb3b639
Initial commit
2019-10-15 22:43:52 -05:00
..
README Initial commit 2019-10-15 22:43:52 -05:00
decode.go Initial commit 2019-10-15 22:43:52 -05:00
encode.go Initial commit 2019-10-15 22:43:52 -05:00
fold.go Initial commit 2019-10-15 22:43:52 -05:00
indent.go Initial commit 2019-10-15 22:43:52 -05:00
scanner.go Initial commit 2019-10-15 22:43:52 -05:00
stream.go Initial commit 2019-10-15 22:43:52 -05:00
tags.go Initial commit 2019-10-15 22:43:52 -05:00

README

This is a fork of go's encoding/json library. It adds the a third target for unmarshalling, json.Node.
Unmarshalling to a Node behaves similarilarly to unmarshalling to an interface{}, except it also records
the offsets for the start and end of the value that was unmarshalled and, if the value was part of a json
object, it also records the offsets of the start and end of the object's key. The Value field of the Node
will be unmarshalled to the same types as if it were an interface{}, except in the case of arrays and
objects. In those case it will be unmarshalled to a []Node or map[string]Node instead []interface{} or
map[string]interface{} for arrays and objects, respectively.

There are two branchs, go15 and go16. go15 contains the modified go1.5 library and go16 contains the
modified go1.6 library.