Have example/jsonfindptrs check unpaired keys

This commit is contained in:
Nigel Tao committed 2020-04-06 20:57:40 +10:00
1 parent 345f1aa060
commit b5d6f8d038
1 file changed
+3
+3
View File
@@ -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);
}