Re: [PATCH v5 1/2] json: Add function to unescape JSON-encoded strings

2022-08-15 Thread Patrick Steinhardt
On Tue, Jul 12, 2022 at 03:39:13PM +0200, Daniel Kiper wrote: > On Mon, Jul 11, 2022 at 09:08:09AM -0400, Nicholas Vinson wrote: > > On 7/11/22 06:44, Patrick Steinhardt wrote: > > > JSON strings require certain characters to be encoded, either by using a > > > single reverse solidus character "\"

Re: [PATCH v5 1/2] json: Add function to unescape JSON-encoded strings

2022-07-12 Thread Daniel Kiper
On Mon, Jul 11, 2022 at 09:08:09AM -0400, Nicholas Vinson wrote: > On 7/11/22 06:44, Patrick Steinhardt wrote: > > JSON strings require certain characters to be encoded, either by using a > > single reverse solidus character "\" for a set of popular characters, or > > by using a Unicode representat

Re: [PATCH v5 1/2] json: Add function to unescape JSON-encoded strings

2022-07-11 Thread Nicholas Vinson
On 7/11/22 06:44, Patrick Steinhardt wrote: JSON strings require certain characters to be encoded, either by using a single reverse solidus character "\" for a set of popular characters, or by using a Unicode representation of "\uX". The jsmn library doesn't handle unescaping for us, so we mu

[PATCH v5 1/2] json: Add function to unescape JSON-encoded strings

2022-07-11 Thread Patrick Steinhardt
JSON strings require certain characters to be encoded, either by using a single reverse solidus character "\" for a set of popular characters, or by using a Unicode representation of "\uX". The jsmn library doesn't handle unescaping for us, so we must implement this functionality for ourselves.