diff --git a/example/jsonfindptrs/jsonfindptrs.cc b/example/jsonfindptrs/jsonfindptrs.cc index 722db8d3..2e3ae872 100644 --- a/example/jsonfindptrs/jsonfindptrs.cc +++ b/example/jsonfindptrs/jsonfindptrs.cc @@ -591,6 +591,9 @@ JsonThing::parse_object(TokenStream& ts) { return Result("main: internal error: unexpected non-string key"); } } + if (have_key) { + return Result("main: internal error: unpaired key"); + } return Result("", jt); }