blark.parse.dump_json
- blark.parse.dump_json(type_: Type[T], obj: T, include_meta: bool = True, indent: int | None = 2) str [source]
Dump object
obj
as typetype_
with apischema and serialize to a string.- Parameters:
- type_Type[T]
The type of
obj
.- objT
The object to serialize.
- include_metabool
Include
meta
information in the dump.- indentint or None
Make the JSON output prettier with indentation.
- Returns:
- str