From 66b034bb06139e91a8417d0899d1f020c3bcdc49 Mon Sep 17 00:00:00 2001 From: Lucas Dedieu Date: Tue, 17 Dec 2024 12:52:58 +0000 Subject: [PATCH] Documentation updating --- confit/utils/xjson.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/confit/utils/xjson.py b/confit/utils/xjson.py index 1941527..a780571 100644 --- a/confit/utils/xjson.py +++ b/confit/utils/xjson.py @@ -260,9 +260,16 @@ def __init__(self, value: str): def loads(s: str): """ - Load an extended JSON string into a Python object. + Load an extended JSON string into a python object. + Takes care of detecting references and tuples - Handles references, tuples, and detects malformed objects. + Parameters + ---------- + s: str + + Returns + ------- + Any """ try: return XJsonTransformer(s).transform(_json_parser.parse(s))