9b4416bfc1
Since the previous commit restricted strings to printable ASCII, \uXXXX's only use is obfuscation. Drop it. This leaves \\, \/, \', and \". Since QAPI schema strings are all names, and names are restricted to ASCII letters, digits, hyphen, and underscore, none of them is useful. The latter three have no test coverage. Drop them. Keep \\ to avoid (more) gratuitous incompatibility with JSON. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190913201349.24332-8-armbru@redhat.com>
5 lines
225 B
JSON
5 lines
225 B
JSON
# we don't recognize any \ escapes other than \\ (tested elsewhere)
|
|
# { 'command': 'fooA', 'data': { 'bar1': 'str' } }
|
|
{ 'c\u006fmmand': '\u0066\u006f\u006FA',
|
|
'd\u0061ta': { '\u0062\u0061\u00721': '\u0073\u0074\u0072' } }
|