diff --git a/examples/streaming.cc b/examples/streaming.cc index bca0209..1baf75a 100644 --- a/examples/streaming.cc +++ b/examples/streaming.cc @@ -39,6 +39,9 @@ class root_context : public picojson::deny_parse_context { bool parse_array_start() { return true; // only allow array as root } + bool parse_array_stop(size_t) { + return true; + } template bool parse_array_item(picojson::input &in, size_t) { picojson::value item; // parse the array item