MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / dict_to_json

Function dict_to_json

python/seldon/cli/cli_main.py:266–267  ·  view source on GitHub ↗
(d, expand=False)

Source from the content-addressed store, hash-verified

264 else: raise
265
266def dict_to_json(d, expand=False):
267 return json.dumps(d, sort_keys=True, indent=4, separators=(',', ': ')) if expand else json.dumps(d, sort_keys=True, separators=(',',':'))
268
269def json_to_dict(json_data):
270 return json.loads(json_data)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected