MCPcopy Index your code
hub / github.com/python/cpython / format_json

Method format_json

Tools/picklebench/memory_dos_impact.py:824–827  ·  view source on GitHub ↗

Format results as JSON.

(results: Dict[str, Dict[str, Any]])

Source from the content-addressed store, hash-verified

822
823 @staticmethod
824 def format_json(results: Dict[str, Dict[str, Any]]) -> str:
825 """Format results as JSON."""
826 import json
827 return json.dumps(results, indent=2)
828
829 @staticmethod
830 def format_antagonistic(results: Dict[str, Dict[str, Any]]) -> str:

Callers 1

_format_outputFunction · 0.80

Calls 1

dumpsMethod · 0.45

Tested by

no test coverage detected