Skip to content

json_file

Merge two json files into one.

default(obj: Any) -> dict

Default JSON encoder.

merge_json_files(
    new_file: Path, existing_file: Path, merge_strategy: str
) -> None

Merge two json files into one.

Parameters:

new_file

The path to the data file to merge

TYPE: Path

existing_file

The path to the data file to merge into and write out.

TYPE: Path

merge_strategy

How to do the merge

TYPE: str

Raises:

MergeError

If something goes wrong