]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: introduce virJSONStringPrettifyBlanks
authorJán Tomko <jtomko@redhat.com>
Thu, 15 Feb 2024 15:21:23 +0000 (16:21 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 24 Sep 2024 06:24:00 +0000 (08:24 +0200)
commit330cf7f492f93dafc1477f900bb2cb641e5e7efe
tree1d9b79a30f81be2a235e5747fb68953a4ef6ed6d
parente14a5fcac4d525b54f6046faad39ddcf7c51d5c1
util: json: introduce virJSONStringPrettifyBlanks

A horribly named function for unifying formatting when pretty-printing
empty JSON arrays and objects. Useful for having stable test output
even if different JSON libraries format these differently.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/libvirt_private.syms
src/util/virjson.c
src/util/virjson.h