Re: [Qemu-devel] [PATCH v4 16/28] qapi: Factor out JSON string escaping

2016-06-02 Thread Markus Armbruster
Eric Blake writes: > Pull out a new qstring_append_json_string() helper, so that all > JSON output producers can use the same output escaping rules. > > While it appears that vmstate's use of the simpler qjson.c > formatter is not currently encountering any string that needs > escapes to be valid

[Qemu-devel] [PATCH v4 16/28] qapi: Factor out JSON string escaping

2016-05-18 Thread Eric Blake
Pull out a new qstring_append_json_string() helper, so that all JSON output producers can use the same output escaping rules. While it appears that vmstate's use of the simpler qjson.c formatter is not currently encountering any string that needs escapes to be valid JSON, it is better to be safe t