summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Add support for preserving Unicode characters in jsonpatch CLIGenzer Hawker2021-03-031-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the JSON content contains some Unicode characters, the jsonpatch final output will encode the Unicode character using ASCII (i.e `\u0394`). This behaviour comes from the module `json.dump()` governed by a flag `ensure_ascii`[1]. For example: ```json /* patch.json */ [{ "op": "add", "path": "/SomeUnicodeSamples", "value": "𝒞𝘋𝙴𝓕ĢȞỈ𝕵 đ áê 🤩 äÄöÖüÜß" }] ``` After applying the patch on an empty source file `{}`, this is the output: ```json {"SomeUnicodeSamples": "\ud835\udc9e\ud835\ude0b...\u00fc\u00dc\u00df"} ``` This commit adds a flag `-u|--preserve-unicode` in the jsonpatch CLI to configure the behaviour of `json.dump`'s `ensure_ascii` flag. Using the `--preserve-unicode` flag, the cli will print the Unicode characters as-is without any encoding. [1]: https://docs.python.org/3/library/json.html#basic-usage
* Subclassing can override json dumper and loaderChristian Lyder Jacobsen2020-03-061-0/+52
| | | | | | | | | Additionally: * from_string gets a loads parameter * to_string gets a dumps_parameter * documentation added * added more tests
* Drop support for EOL Python 3.3Hugo2018-01-161-1/+1
|
* Update supported versions in docsStefan Kögl2017-10-211-3/+3
|
* add empty _static dir to avoid docs warningStefan Kögl2013-10-121-0/+0
|
* add docs for commandline utilitiesStefan Kögl2013-10-122-0/+111
|
* add documentationStefan Kögl2013-04-145-0/+504