I do not know how to get this fix in Debian's json-c repository
https://salsa.debian.org/debian/json-c as there is a branch named debian/buster which contains changes made specifically for Debian and I am unaware of the review/release process of this package.