<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-json-patch.git, branch v1.31</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.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>
<entry>
<title>Update comment</title>
<updated>2021-02-18T15:27:21+00:00</updated>
<author>
<name>Ryan Marvin</name>
<email>marvinryan@ymail.com</email>
</author>
<published>2021-02-18T15:27:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=f6b26b25805f1c01c3fae1495176cefac7d4a158'/>
<id>f6b26b25805f1c01c3fae1495176cefac7d4a158</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add comment</title>
<updated>2021-02-18T15:25:25+00:00</updated>
<author>
<name>Ryan Marvin</name>
<email>marvinryan@ymail.com</email>
</author>
<published>2021-02-18T15:25:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=78abec1651c4c3166d0eda4f9c0e43e00df57494'/>
<id>78abec1651c4c3166d0eda4f9c0e43e00df57494</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix make_patch</title>
<updated>2021-02-01T13:58:05+00:00</updated>
<author>
<name>Ryan Marvin</name>
<email>marvinryan@ymail.com</email>
</author>
<published>2021-02-01T13:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=8d15ed5740027d5c0f295f82b347d963c77b8c5e'/>
<id>8d15ed5740027d5c0f295f82b347d963c77b8c5e</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.28</title>
<updated>2020-12-01T19:54:26+00:00</updated>
<author>
<name>Stefan Kögl</name>
<email>stefan@skoegl.net</email>
</author>
<published>2020-12-01T19:54:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-json-patch.git/commit/?id=a9a83b5aae65db3007fef8a4015f46e6e59d69c2'/>
<id>a9a83b5aae65db3007fef8a4015f46e6e59d69c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
