Re: [Qemu-devel] [PATCH] qmp: fix handling of boolean values in qmp-shell

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 15:48:46 +0100 Igor Mammedov wrote: > qmp-shell converts only integer arguments and the rest > is assumed to be strings which are faithfully sent as > quoted strings by json. But QEMU refuses to accept qmp > command with boolean argument whose value is escaped > as string. >

[Qemu-devel] [PATCH] qmp: fix handling of boolean values in qmp-shell

2013-03-25 Thread Igor Mammedov
qmp-shell converts only integer arguments and the rest is assumed to be strings which are faithfully sent as quoted strings by json. But QEMU refuses to accept qmp command with boolean argument whose value is escaped as string. Fix it by special-casing true/false keywords and store value as corres