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

Function json_underscore

hug/input_format.py:57–62  ·  view source on GitHub ↗

Converts JSON formatted date to native Python objects. The keys in any JSON dict are transformed from camelcase to underscore separated words.

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

Source from the content-addressed store, hash-verified

55
56
57def json_underscore(body, charset="utf-8", **kwargs):
58 """Converts JSON formatted date to native Python objects.
59
60 The keys in any JSON dict are transformed from camelcase to underscore separated words.
61 """
62 return _underscore_dict(json(body, charset=charset))
63
64
65@content_type("application/x-www-form-urlencoded")

Callers

nothing calls this directly

Calls 2

_underscore_dictFunction · 0.85
jsonFunction · 0.70

Tested by

no test coverage detected