updated with Json writers