From b152729cb5b3ae9914e6fd5c3bdbfe17c0e9b9af Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 18 Jan 2015 15:36:24 +1100 Subject: [PATCH] json: allow arrays as the root node --- json.cpp.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.cpp.rl b/json.cpp.rl index 8d05db09..04405157 100644 --- a/json.cpp.rl +++ b/json.cpp.rl @@ -228,7 +228,7 @@ struct parse_context { $!failure @{ fhold; fret; }; - json := (space* object space*) + json := (space* (object | array) space*) $!failure %success >{ __success = false; };