MCPcopy
hub / github.com/pallets/flask / dumps

Method dumps

src/flask/json/tag.py:321–323  ·  view source on GitHub ↗

Tag the value and dump it to a compact JSON string.

(self, value: t.Any)

Source from the content-addressed store, hash-verified

319 return value
320
321 def dumps(self, value: t.Any) -> str:
322 """Tag the value and dump it to a compact JSON string."""
323 return dumps(self.tag(value), separators=(",", ":"))
324
325 def loads(self, value: str) -> t.Any:
326 """Load data from a JSON string and deserialized any tagged objects."""

Callers 2

test_dump_load_unchangedFunction · 0.95
test_custom_tagFunction · 0.95

Calls 2

tagMethod · 0.95
dumpsFunction · 0.85

Tested by 2

test_dump_load_unchangedFunction · 0.76
test_custom_tagFunction · 0.76