Added flat json emitter