Skip to content

Commit

Permalink
Documentation updating
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasDedieu committed Dec 17, 2024
1 parent cb7d479 commit 66b034b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions confit/utils/xjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 66b034b

Please sign in to comment.