json: allow arrays as the root node

This commit is contained in:
Danny Robson 2015-01-18 15:36:24 +11:00
parent fa52752629
commit b152729cb5

View File

@ -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; };