module documentation

ujson wrapper for micropython, part of Stick firmware

Function read Parse json from file
Function read_from_string Parse json from string
Function read_gzipped Parse json from gzipped file
Function write Write json to file
def read(filename: str) -> dict | None:

Parse json from file Args: filename (str): Path to json file Returns: dict | None: Json dictionary or None if failed

def read_from_string(data: str) -> dict | None:

Parse json from string Args: data (str): Json string data Returns: dict | None: Json dictionary or None if failed

def read_gzipped(filename: str) -> dict | None:

Parse json from gzipped file Args: filename (str): Path to gzipped json file Returns: dict | None: Json dictionary or None if failed

def write(filename: str, data: dict) -> bool:

Write json to file Args: filename (str): Path to json file data (dict): Data to write to file Returns: bool: True if success, False if failed