zut.json.encode_json

zut.json.encode_json(data: Any, *, indent: int | str | None = None, sort_keys=False, ensure_ascii=False, cls: type[JSONEncoder] = <class 'zut.json.ExtendedJSONEncoder'>) str

Encode a Python object into a JSON string and return it.