visitor: Add JSON comment output.