json2xml package

Submodules

json2xml.dicttoxml module

json2xml.json2xml module

json2xml.utils module

Utility methods for reading JSON data from various sources.

exception json2xml.utils.InvalidDataError[source]

Bases: Exception

Raised when the data is invalid.

exception json2xml.utils.JSONReadError[source]

Bases: Exception

Raised when there is an error reading JSON data.

exception json2xml.utils.StringReadError[source]

Bases: Exception

Raised when there is an error reading from a string.

exception json2xml.utils.URLReadError[source]

Bases: Exception

Raised when there is an error reading from a URL.

json2xml.utils.readfromjson(filename: str) None | bool | int | float | str | list[JSONValue] | dict[str, JSONValue][source]

Read JSON data from a file.

json2xml.utils.readfromstring(jsondata: object) None | bool | int | float | str | list[JSONValue] | dict[str, JSONValue][source]

Load JSON data from a string.

json2xml.utils.readfromurl(url: str, params: dict[str, str] | None = None) None | bool | int | float | str | list[JSONValue] | dict[str, JSONValue][source]

Load JSON data from a URL.

Module contents

Top-level package for json2xml.