MCPcopy
hub / github.com/plotly/dash / _json

Function _json

dash/_utils.py:202–204  ·  view source on GitHub ↗
(k, v)

Source from the content-addressed store, hash-verified

200
201def stringify_id(id_) -> str:
202 def _json(k, v):
203 vstr = v.to_json() if hasattr(v, "to_json") else json.dumps(v)
204 return f"{json.dumps(k)}:{vstr}"
205
206 if isinstance(id_, dict):
207 return "{" + ",".join(_json(k, id_[k]) for k in sorted(id_)) + "}"

Callers 1

stringify_idFunction · 0.85

Calls 1

to_jsonMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…