change _doc --> to_json
Merge pull request #1719 from dimagi/homevisit-updates

change _doc --> to_json