[api] add convenience method `produce` to automatically add standard def...

...ault values to the object/array of objects passed to it and then writes to the socket