std/json: Fix premature closing brace being considered valid JSON
return error from StreamingParser when reading closing brace when expecting value for an object key
This commit is contained in:
committed by
GitHub
parent
4f71852c10
commit
e902c19c0e
@@ -76,6 +76,12 @@ test "y_trailing_comma_after_empty" {
|
||||
);
|
||||
}
|
||||
|
||||
test "n_object_closed_missing_value" {
|
||||
try err(
|
||||
\\{"a":}
|
||||
);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
test "y_array_arraysWithSpaces" {
|
||||
|
||||
Reference in New Issue
Block a user