Patrick Steinhardt b4055ebb8b lib/json/json: Add function to unescape JSON-encoded strings
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 "\uXXXXX". The jsmn library
doesn't handle unescaping for us, so we must implement this functionality
for ourselves.

Add a new function grub_json_unescape() that takes a potentially
escaped JSON string as input and returns a new unescaped string.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Daniel Kiper <dkiper@net-space.pl>
2022-08-19 23:55:50 +02:00
..
2011-05-13 16:36:05 +02:00
2017-05-08 20:53:28 +02:00
2022-03-14 15:47:13 +01:00
2010-08-30 00:54:15 +02:00
2022-03-14 15:47:13 +01:00
2022-03-14 15:47:13 +01:00
2021-12-23 01:05:34 +01:00
2022-03-14 15:47:13 +01:00
2022-03-14 15:47:13 +01:00
2019-02-25 11:28:44 +01:00
2016-10-27 16:22:06 +02:00
2022-03-21 18:50:13 +01:00
2022-03-14 15:47:13 +01:00
2011-07-05 20:24:20 +02:00
2022-03-14 15:47:13 +01:00
2019-03-25 15:14:52 +01:00
2012-02-26 18:09:07 +01:00
2022-03-14 15:47:13 +01:00
2013-12-18 05:28:05 +01:00
2016-02-12 12:39:38 +01:00
2021-09-20 13:52:20 +02:00