This looks like a similar issue to the one you posted about Pig. After taking a quick look at the code, I think it's also definitely a bug. I've opened an issue here.
With this showing up twice now, I'm also planning on doing a comprehensive review of the es.output.json
feature. It seems to be a feature that is lacking in it's tests.