MCPcopy Create free account
hub / github.com/blockfrost/blockfrost-python / convert_json_to_object

Function convert_json_to_object

blockfrost/utils.py:36–37  ·  view source on GitHub ↗
(json_response)

Source from the content-addressed store, hash-verified

34
35
36def convert_json_to_object(json_response):
37 return json.loads(json.dumps(json_response), object_hook=lambda d: Namespace(**d))
38
39
40def convert_json_to_pandas(json_response):

Callers 15

test_default_mapperFunction · 0.90
test_object_mapperFunction · 0.90
test_genesisFunction · 0.90
test_healthFunction · 0.90
test_clockFunction · 0.90
test_epoch_latestFunction · 0.90
test_epochFunction · 0.90
test_epochs_nextFunction · 0.90
test_epochs_previousFunction · 0.90
test_epoch_stakesFunction · 0.90
test_epoch_pool_stakesFunction · 0.90

Calls 1

NamespaceClass · 0.85

Tested by 15

test_default_mapperFunction · 0.72
test_object_mapperFunction · 0.72
test_genesisFunction · 0.72
test_healthFunction · 0.72
test_clockFunction · 0.72
test_epoch_latestFunction · 0.72
test_epochFunction · 0.72
test_epochs_nextFunction · 0.72
test_epochs_previousFunction · 0.72
test_epoch_stakesFunction · 0.72
test_epoch_pool_stakesFunction · 0.72