Re: [Qemu-devel] [PATCH v2 03/14] qapi: Factor out JSON string escaping

2015-12-22 Thread Fam Zheng
On Mon, 12/21 17:30, Eric Blake wrote: > 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 >

[Qemu-devel] [PATCH v2 03/14] qapi: Factor out JSON string escaping

2015-12-21 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