json emitter - more amends