Implement JsonGenerator methods writeComment() and canWriteComments() (original) (raw)
With FasterXML/jackson-core#1593 there is now JsonGenerator API for writing comments using streaming generator, if (and only if) format supports it.
Since XML has comments, let's add support here.