Text.to_json
- Text.to_json(filepath, pretty=False)[source]
- Serialize the data representation of an object to a JSON file. - Parameters
- filepathpath string or file-like object
- The path or file-like object to the file containing the data. 
- prettybool, optional
- If True, serialize to a “pretty”, human-readable representation. 
 
- Returns
- None