Skip to content

confit.utils.xjson

Reference [source]

A path reference to a value in the configuration.

Parameters

PARAMETER DESCRIPTION
value

The path to the value in the configuration.

TYPE: str

XJsonTransformer [source]

Bases: Transformer

A Lark transformer to parse extended JSON.

Parameters

PARAMETER DESCRIPTION
input_string

The input string to parse.

TYPE: str

string [source]

Parse string

float [source]

Parse number

int [source]

Parse number

reference [source]

Parse reference

null [source]

Parse null

true [source]

Parse true

false [source]

Parse false

plus_inf [source]

Parse infinity

minus_inf [source]

Parse -infinity

nan [source]

Parse nan

loads [source]

Load an extended JSON string into a python object. Takes care of detecting references and tuples

Parameters

PARAMETER DESCRIPTION
s

TYPE: str

RETURNS DESCRIPTION
Any

dumps [source]

Dump a python object into an extended JSON string. Takes care of serializing references and tuples

Parameters

PARAMETER DESCRIPTION
o

TYPE: Any

RETURNS DESCRIPTION
str