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

2022-06-06 Thread Glenn Washburn
On Mon, 6 Jun 2022 07:18:28 +0200 Patrick Steinhardt wrote: > On Sun, Jun 05, 2022 at 02:00:44PM -0500, Glenn Washburn wrote: > > On Mon, 30 May 2022 18:01:01 +0200 > > Patrick Steinhardt wrote: > > > > > JSON strings require certain characters to be encoded, either by using a > > > single reve

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

2022-06-05 Thread Patrick Steinhardt
On Sun, Jun 05, 2022 at 02:00:44PM -0500, Glenn Washburn wrote: > On Mon, 30 May 2022 18:01:01 +0200 > 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

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

2022-06-05 Thread Glenn Washburn
On Mon, 30 May 2022 18:01:01 +0200 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 un

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

2022-05-30 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.