mirror of
https://github.com/Noratrieb/jsonformat.git
synced 2026-01-14 22:25:01 +01:00
added #3 support drag and drop in windows
This commit is contained in:
parent
427f285f24
commit
f05b911415
2 changed files with 23 additions and 2 deletions
|
|
@ -29,6 +29,12 @@ OPTIONS:
|
|||
Reads from stdin if no file is supplied.
|
||||
Outputs to stdout if no output file is specified.
|
||||
|
||||
On windows, it writes to a file called `<filename>_f.json`, unless the `--stdout` flag is used or a custom output file is provided. This it to enable drag-and-drop in windows explorer.
|
||||
|
||||
## Error handling
|
||||
`jsonformat` does not report malformed json - it can't even fully know whether the json is actually malformed. Malformed json is just formatted kind of incorrectly, with no data lost and no crashes. If you find one, open an issue,
|
||||
|
||||
|
||||
## How?
|
||||
`jsonformat` does not actually parse the json, it just loops through each character and keeps track of some flags. It then copies these characters to the output buffer, adding and removing whitespace.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue