]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: Add helper to return string or number properties as string
authorPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2018 10:54:31 +0000 (11:54 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jan 2018 11:21:39 +0000 (12:21 +0100)
commitd3da8013cc11d6a10d4a4146bcbb0a7e34523fa5
treeb4da5a2cffa7364f2d63c343ca0cb1c9b19f82b2
parentc7f6d4d01063a1c445f2b9cf8af11f8e8c36db43
util: json: Add helper to return string or number properties as string

The helper is useful in cases when the JSON we have to parse may contain
one of the two due to historical reasons and the number value itself
would be stored as a string.
src/util/virjson.c
src/util/virjson.h