Renders a JSON value as a pretty-printed HTML block using a JavaScript JSON.stringify call.
Registered as a process-text handler.
| Parameter | Description |
|---|---|
Param1 |
JSON string or value to display |
Generates a unique element ID via get_uuid(), renders a <pre> tag, and injects a <script> block that calls JSON.stringify(data, undefined, 2) to pretty-print the value into the element at runtime.
NOTE:
Param1is injected directly into the script block without escaping — callers must ensure the value is trusted.<>
Returns an HTML fragment containing a <pre> element and a <script> block.
ObjProcessText(ObjData.ObjData) — inherits database and config access from ObjData.
cythonize -3 -a -i ObjTextJson.py
Updated : 2025-10-02