Commit Graph

3 Commits

Author SHA1 Message Date
Chris Masone ccd70d7c65 Changed error handling in Marshal and Unmarshal
Instead of returning errors, these now use d.Exp to raise catchable
errors.

Also, added commit hash at which code was pulled from encoding/json

Marshal io.Reader into a Blob, unmarshal Blob into io.Writer
2015-08-26 09:28:04 -07:00
Chris Masone 5de698b8f1 Add Unmarshal and Marshal
Unmarshal and Marshal are tools for moving data from Noms into native Go and
back. The rules are described in the documentation of the two functions, but
the behavior is broadly similar to encoding/json.

Towards issue #160
2015-08-26 09:27:58 -07:00
Chris Masone 9875fccd40 Initial import of encoding/json files
The plan is to modify the encoding/json code heavily for use in
marshaling between native Go and Noms values. This pulls in the files
unmodified so we have a record of our changes.
2015-08-26 09:15:34 -07:00