summaryrefslogtreecommitdiff
path: root/json/json.go
diff options
context:
space:
mode:
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)
}