Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT-LLM
/ to_json_string
Function
to_json_string
tensorrt_llm/_utils.py:657–660 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
655
656
657
def
to_json_string(obj):
658
if
not isinstance(obj, dict):
659
obj = to_dict(obj)
660
return
json.dumps(obj, indent=2, sort_keys=True) +
"\n"
661
662
663
def
to_json_file(obj, json_file_path):
Callers
1
to_json_file
Function · 0.85
Calls
1
to_dict
Function · 0.85
Tested by
no test coverage detected