- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit9111d46
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 indatum_to_json was left, which generate4d sprutious errors in othee jsongenerators, notable json_build_object.Along the way, add an assertion that datum_to_json is not passed a nullkey. All current callers comply with this rule, but the assertion willcatch any possible future misbehaviour.1 parent5d7962c commit9111d46
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
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
Comments
(0)