Added more docs about to_json.