Functions for saving objects to file after they have been JSON serialized.
case_to_file(case, filename=None, directory=None, filepath=None)¶
Save one case from an API response as a JSON file.
results – A dict representing a case, in the format of the Caselaw Access Project API.
- Return type