Extract the inline object generation to a function, so the output can simply be pushed into result For https://github.com/n3ps/json-schema-to-jsdoc/pull/73