vppapigen: fix coverity issues in jsonconvert