mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Have example/jsonfindptrs check unpaired keys
This commit is contained in:
1 parent
345f1aa060
commit
b5d6f8d038
1 file changed
+3
@@ -591,6 +591,9 @@ JsonThing::parse_object(TokenStream& ts) {
|
|||||||
return Result("main: internal error: unexpected non-string key");
|
return Result("main: internal error: unexpected non-string key");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (have_key) {
|
||||||
|
return Result("main: internal error: unpaired key");
|
||||||
|
}
|
||||||
return Result("", jt);
|
return Result("", jt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user