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
@{ fhold; fret; };
json := (space* object space*)
json := (space* (object | array) space*)
$!failure
%success
>{ __success = false; };