GROOVY-6824: StreamingJsonBuilder rewrited