json: allow arrays as the root node
This commit is contained in:
parent
fa52752629
commit
b152729cb5
@ -228,7 +228,7 @@ struct parse_context {
|
||||
$!failure
|
||||
@{ fhold; fret; };
|
||||
|
||||
json := (space* object space*)
|
||||
json := (space* (object | array) space*)
|
||||
$!failure
|
||||
%success
|
||||
>{ __success = false; };
|
||||
|
Loading…
Reference in New Issue
Block a user