Write JSON Value
Description
Write a value to a JSON file using a path.
Function Signature:
def write_json_value(file_path: str, json_path: str, value: Any) -> None:
Parameters
- file_path (str): Full path to the file on disk.
- json_path (str): Input value for
json_path. - value (Any): Input value for
value.
Returns
- None: The function does not return a value.
Example Usage
# Example usage
file_path = "example"
json_path = "example"
value = None
result = write_json_value(file_path, json_path, value)
print(result)
Behavior
- Executes the function logic with the provided arguments.
- On success, returns the computed value or result object.
Error Handling
- Exceptions are handled within the function where implemented.