provider
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| PydanticProvider configz.json_tools.pydantic_provider.provider Pydantic implementation of the JSON provider interface. |
🛈 DocStrings¶
Pydantic provider implementation.
PydanticProvider
¶
Bases: JsonProviderBase
Pydantic implementation of the JSON provider interface.
Source code in src/configz/json_tools/pydantic_provider/provider.py
dump_json
staticmethod
¶
dump_json(
data: Any,
indent: bool = False,
naive_utc: bool = False,
serialize_numpy: bool = False,
sort_keys: bool = False,
) -> str
Dump data to JSON string using pydantic_core.
Source code in src/configz/json_tools/pydantic_provider/provider.py
load_json
staticmethod
¶
Load JSON using pydantic_core.