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