CLN: Fix return type for initObjToJSON()
Merge pull request #5334 from jtratner/try-fix-for-initobjtojson

CLN: Fix return type for initObjToJSON()