diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-10-18 15:36:57 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-10-26 18:44:15 +0900 |
| commit | bfdf02ea7290d1d76e457ffbb15cfef5e64bf547 (patch) | |
| tree | e24b355da11e28f8e2379dda0ca5a5ef39fd3879 /node.c | |
| parent | 1d4708565fead0291c5c54db60a196268d706aa6 (diff) | |
pretty_generate: don't apply object_nl / array_nl for empty containers
Fix: https://github.com/ruby/json/issues/437
Before:
```json
{
"foo": {
},
"bar": [
]
}
```
After:
```json
{
"foo": {},
"bar": []
}
```
Diffstat (limited to 'node.c')
0 files changed, 0 insertions, 0 deletions
