Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Why `decode` only parse object and array at top level? #47

Closed
yihuang opened this Issue · 1 comment

2 participants

@yihuang

Because i find myself writing a decodeValue function which can parse any json value, so i wonder why the builtin decode function don't do that, is there a reason behind this?

@bos
Owner

Object and array are the only valid top-level JSON types. See RFC 4627.

@bos bos closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.