On 03/08/20 14:23, Daniel P. Berrangé wrote: > We'd really love to move off YAJL for JSON parsing
What are the issues with YAJL? >> It could be avoided by using a schema in Libvirt, just like QEMU has no >> problem with it on the other side; it's just a different design choice >> with different trade-offs, I don't think it's enough of an issue to >> declare JSON "the wrong choice of format for QMP". > > The schema doesn't help - the problem is many JSON parsers don't allow > use of full uint64 values when parsing - alot will simply report an > error for anything bigger than LLONG_MAX and offer no workaround. Sure, but this problem is not at all unique to QEMU and JSON parsers have a way to support large integers in pretty much every language (including Javascript). In some of them like Python or Ruby it's even the default behavior. Paolo