Commit 9111d46
committed
Remove ill-conceived ban on zero length json object keys.
We removed a similar ban on this in json_object recently, but the ban in
datum_to_json was left, which generate4d sprutious errors in othee json
generators, notable json_build_object.
Along the way, add an assertion that datum_to_json is not passed a null
key. All current callers comply with this rule, but the assertion will
catch any possible future misbehaviour.1 parent 5d7962c commit 9111d46
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1345 | 1348 | | |
1346 | 1349 | | |
1347 | 1350 | | |
| |||
1487 | 1490 | | |
1488 | 1491 | | |
1489 | 1492 | | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | 1493 | | |
1495 | 1494 | | |
1496 | 1495 | | |
| |||
0 commit comments