module tools.json_helper

Inheritance diagram of lightmlrestapi.tools.json_helper

Short summary

module lightmlrestapi.tools.json_helper

Helpers about json.

source on GitHub

Classes

class

truncated documentation

JsonError

Raised when serialization to json does not work.

Functions

function

truncated documentation

json_dumps

Dumps an object into json.

json_loads

Loads an object from json.

Methods

method

truncated documentation

__init__

Documentation

Helpers about json.

source on GitHub

exception lightmlrestapi.tools.json_helper.JsonError(obj, data=None)

Bases: ValueError

Raised when serialization to json does not work.

source on GitHub

__init__(obj, data=None)
lightmlrestapi.tools.json_helper.json_dumps(obj)

Dumps an object into json.

Parameters:

X – object

Returns:

json

source on GitHub

lightmlrestapi.tools.json_helper.json_loads(jsdata)

Loads an object from json.

Parameters:

jsdata – json

Returns:

object

source on GitHub