MCPcopy Create free account
hub / github.com/encode/starlette / render_json

Function render_json

benchmarks/json_benchmark.py:38–39  ·  view source on GitHub ↗
(content: list[dict[str, object]])

Source from the content-addressed store, hash-verified

36
37
38def render_json(content: list[dict[str, object]]) -> bytes:
39 return json.dumps(content, ensure_ascii=False, allow_nan=False, separators=(",", ":")).encode()
40
41
42SMALL_PAYLOAD = JSONCase("1KiB", 25)

Callers 3

warm_appsFunction · 0.85
test_request_jsonFunction · 0.85
test_json_responseFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_request_jsonFunction · 0.68
test_json_responseFunction · 0.68