<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-json-patch.git, branch v1.32</title>
<subtitle>github.com: stefankoegl/python-json-patch.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/'/>
<entry>
<title>Bump version to 1.32</title>
<updated>2021-03-13T19:14:39+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-13T19:14:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=55d4816975350ea3f683814f4d025951ddfb1693'/>
<id>55d4816975350ea3f683814f4d025951ddfb1693</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of github.com:stefankoegl/python-json-patch</title>
<updated>2021-03-13T19:12:15+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-13T19:12:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=fd9fa23c1e4b6f9f77218975bc6f10d438ef5c1b'/>
<id>fd9fa23c1e4b6f9f77218975bc6f10d438ef5c1b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #130 from Penguin2600/master</title>
<updated>2021-03-13T19:11:40+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-13T19:11:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=ce15b237efb885b0861ba4cfaf2957e591f8cb57'/>
<id>ce15b237efb885b0861ba4cfaf2957e591f8cb57</id>
<content type='text'>
Closes #129</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #129</pre>
</div>
</content>
</entry>
<entry>
<title>closes #129</title>
<updated>2021-03-12T00:15:15+00:00</updated>
<author>
<name>Bock</name>
<email>charles.v.bock@intel.com</email>
</author>
<published>2021-03-12T00:15:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=5cdb066ab6bfd0f28e7bd78a61f13bf4ff90d00d'/>
<id>5cdb066ab6bfd0f28e7bd78a61f13bf4ff90d00d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to 1.31</title>
<updated>2021-03-04T19:13:29+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-04T19:13:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=d1cfec3187bc5e8b9e43127848107d7f4bf3dd80'/>
<id>d1cfec3187bc5e8b9e43127848107d7f4bf3dd80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove failing pypy build</title>
<updated>2021-03-04T19:08:42+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-04T19:08:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=7a6d76ada4b990b1951831a42a08924de5775c2d'/>
<id>7a6d76ada4b990b1951831a42a08924de5775c2d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #127 from Genzer/master</title>
<updated>2021-03-04T19:08:29+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-04T19:08:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=cc37e25ee26add6989b6138085973f2231182549'/>
<id>cc37e25ee26add6989b6138085973f2231182549</id>
<content type='text'>
Add support for preserving Unicode characters in jsonpatch CLI</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for preserving Unicode characters in jsonpatch CLI</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for preserving Unicode characters in jsonpatch CLI</title>
<updated>2021-03-03T07:54:40+00:00</updated>
<author>
<name>Genzer Hawker</name>
<email>genzers@gmail.com</email>
</author>
<published>2021-03-03T07:24:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=974d54f393de78ce21bee9897cee8f1ace5813ee'/>
<id>974d54f393de78ce21bee9897cee8f1ace5813ee</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix version number v1.30</title>
<updated>2021-03-02T20:25:16+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-02T20:25:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=dbea3db33298da4ec41197b07612c42580e132e4'/>
<id>dbea3db33298da4ec41197b07612c42580e132e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #122 from RyanSept/119-120-fix-diffbuilder</title>
<updated>2021-03-02T20:11:16+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2021-03-02T20:11:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=25762afe94ce465c05465a763f27e879e1523819'/>
<id>25762afe94ce465c05465a763f27e879e1523819</id>
<content type='text'>
#119 #120 Fix make_patch() to avoid casting numeric string to int on item moved</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
#119 #120 Fix make_patch() to avoid casting numeric string to int on item moved</pre>
</div>
</content>
</entry>
</feed>
