First "draft" of a JSON emitter