Crates.io | rekson |
lib.rs | rekson |
version | 0.0.1 |
source | src |
created_at | 2024-11-09 12:57:26.998235 |
updated_at | 2024-11-09 12:57:26.998235 |
description | A simple standalone to rectify json |
homepage | https://github.com/pinbraerts/rekson |
repository | https://github.com/pinbraerts/rekson |
max_upload_size | |
id | 1442059 |
size | 17,419 |
rectify your json
I frequently edit json files.
It is a completely unusable configuration language with poorly written grammar.
So I came up with a simple program to fix manually edited json.
This is not a formatter, rather it is intended to be used in conjunction with one,
for example jq
.
{,"a":3,} -> {"a":3}
)[1 2] -> [1, 2]
){`key`: 'value'} -> {"key": "value"}
)True -> true
)None -> null
){a:3} -> {"a":3}
){"a"=3} -> {"a":3}
){b 4} -> {"b":4}
){[{[{]] -> {[{[{}]}]}
)((),()) -> [[],[]]
)0xff -> 256
)