JSON files

Overview

This page outlines our guidelines for parsing data from JSON files to a primary model.

Strategy

Use pydantic to define a pydantic.BaseModel which closely resembles the structure of the input JSON. This model can then be used to parse the JSON into a primary model, via pydantic.BaseModel.model_validate_json().