As part of making QAPI usable for virt-agent, Mike Roth and I spent some time hardening the current JSON infrastructure against malicious input. I thought it would be useful to split this out independently of QAPI Round 1.
This does include Error and glib. To propagate JSON errors, we need Error.