Added json_emit()