search for: qdict_from_jsonf_nofail

Displaying 2 results from an estimated 2 matches for "qdict_from_jsonf_nofail".

2020 Feb 04
3
Re: Does Libvirt's json parser support single quoted string in qmp json string?
...opt in. Can't say offhand whether that's practical. > We could start a deprecation clock, if desired, but I don't know how > many external users would be impacted (at least qemu's testsuite > heavily relies on the extension of single quotes). Looks like this: rsp = qdict_from_jsonf_nofail("{ 'error': { 'class': %s, 'desc': %s } }", QapiErrorClass_str(error_get_class(err)), error_get_pretty(err)); Without the extension, we'd suffer from a mild case of leaning toothpick syndrome:...
2020 Feb 03
2
Re: Does Libvirt's json parser support single quoted string in qmp json string?
On Fri, Jan 31, 2020 at 06:44:42AM -0600, Eric Blake wrote: > On 1/31/20 4:38 AM, Peter Luo wrote: > > > error: internal error: cannot parse json {"execute": "block-commit", "arguments": { "device": "drive-virtio-disk2", "job-id": "job100",