[#2212] CID72462:

corrected = to +=
[#2212] CID72463:

json_object_foreach is a macro that explicitly sets both key and val to
non-NULL values