pydantic_settings.decoder.json

Module Contents

class pydantic_settings.decoder.json.ASTItem
location :TextLocation
value
classmethod create(cls, line: int, col: int, end_line: int, end_col: int, val: AstJsonLike, pos: int = None, end_pos: int = None) → 'ASTItem'
get_json_value(self) → Json
pydantic_settings.decoder.json.AstJsonLike
class pydantic_settings.decoder.json.ASTDecoder

Simple JSON <http://json.org> decoder

Performs the following translations in decoding by default:

JSON

Python

object

dict

array

list

string

str

number (int)

int

number (real)

float

true

True

false

False

null

None

It also understands NaN, Infinity, and -Infinity as their corresponding float values, which is outside the JSON spec.

pydantic_settings.decoder.json.load
pydantic_settings.decoder.json.loads
pydantic_settings.decoder.json.decode_document(content: Union[str, TextIO]) → TextValues