summaryrefslogtreecommitdiff
path: root/json/json.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-11 00:10:58 +1000
committerAdam Scarr <adam@vektah.net>2017-08-11 00:10:58 +1000
commitc160e565ba86b79b0eafc2dd5fb70ca142ada6ef (patch)
treeb9198fe8af2fa3587e8593898e6a06cb585736bc /json/json.go
parent60dd11deeec8254da45f9f5b7d24dedef27c4f53 (diff)
Fix unexported Unmarshal
Diffstat (limited to 'json/json.go')
-rw-r--r--json/json.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/json/json.go b/json/json.go
index 0707f0a..172099c 100644
--- a/json/json.go
+++ b/json/json.go
@@ -36,6 +36,7 @@ func init() {
_value = Any(_null, _true, _false, _string, _number, _array, _object)
}
-func unmarshal(input string) (interface{}, error) {
+// Unmarshall json string into map[string]interface{} or []interface{}
+func Unmarshal(input string) (interface{}, error) {
return Run(_value, input, ASCIIWhitespace)
}