MCPcopy Create free account
hub / github.com/EasyIME/PIME / json_decode

Function json_decode

python/python3/tornado/escape.py:78–83  ·  view source on GitHub ↗

Returns Python objects for the given JSON string. Supports both `str` and `bytes` inputs.

(value: Union[str, bytes])

Source from the content-addressed store, hash-verified

76
77
78def json_decode(value: Union[str, bytes]) -> Any:
79 """Returns Python objects for the given JSON string.
80
81 Supports both `str` and `bytes` inputs.
82 """
83 return json.loads(to_basestring(value))
84
85
86def squeeze(value: str) -> str:

Callers 15

test_openid_get_userMethod · 0.90
test_oauth10_get_userMethod · 0.90
test_facebook_loginMethod · 0.90
test_twitter_get_userMethod · 0.90
test_google_loginMethod · 0.90
fetch_jsonMethod · 0.90
test_multipart_formMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_openid_get_userMethod · 0.72
test_oauth10_get_userMethod · 0.72
test_facebook_loginMethod · 0.72
test_twitter_get_userMethod · 0.72
test_google_loginMethod · 0.72
fetch_jsonMethod · 0.72
test_multipart_formMethod · 0.72