MCPcopy Index your code
hub / github.com/hugapi/hug / json

Function json

hug/input_format.py:41–43  ·  view source on GitHub ↗

Takes JSON formatted data, converting it into native Python objects

(body, charset="utf-8", **kwargs)

Source from the content-addressed store, hash-verified

39
40@content_type("application/json")
41def json(body, charset="utf-8", **kwargs):
42 """Takes JSON formatted data, converting it into native Python objects"""
43 return json_converter.loads(text(body, charset=charset))
44
45
46def _underscore_dict(dictionary):

Callers 1

json_underscoreFunction · 0.70

Calls 2

textFunction · 0.70
loadsMethod · 0.45

Tested by

no test coverage detected