Json Stringify
Converts a JSON-safe value of at most 100 nesting levels to compact or two-space-indented JSON text and rejects values that JSON would otherwise omit or alter. Validates and copies accepted descriptors before serialization, so getters, inherited toJSON methods, Proxy re-reads, class/host objects, and nesting deeper than 100 levels cannot alter or silently truncate the result.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
value | yes | expression | — | — |
pretty | no | expression | — | — |
Notes
No additional notes are available yet.
Examples
Copy Pretty Camera Metadata JSON To Clipboard
Serializes the first selected item's fixed-field Camera metadata object with two-space indentation and copies the resulting JSON text to the clipboard.
Topics: json, metadata, clipboard, pretty printing
Source: patterns/ex-json-copy-pretty-camera-metadata-to-clipboard.json
Pass Small Camera Metadata JSON To Python
Serializes the selected item's Camera metadata, enforces a 4096-character limit, and only then passes the JSON string directly to isolated Python as one process argument.
Topics: json, metadata, runtime python, external process
Source: patterns/ex-json-pass-small-camera-metadata-to-python.json
Write Camera Metadata JSON For Python
Serializes the selected item's Camera metadata, writes compact JSON to a flushed per-run randomized file, lets isolated Python read it, and removes the file after normal process completion.
Topics: json, metadata, files, runtime python, external process
Source: patterns/ex-json-write-camera-metadata-for-python.json