change _doc --> to_json