Skip to main content

Json Stringify

Category: Text Json Stringify block screenshot

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​

InputRequiredValue KindTypesEnum Values
valueyesexpression——
prettynoexpression——

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.

kind: Pattern · format: runtime-dsl · validation: Manual workspace

Topics: json, metadata, clipboard, pretty printing

Source: patterns/ex-json-copy-pretty-camera-metadata-to-clipboard.json

Download 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.

kind: Pattern · format: runtime-dsl · validation: Manual workspace

Topics: json, metadata, runtime python, external process

Source: patterns/ex-json-pass-small-camera-metadata-to-python.json

Download 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.

kind: Pattern · format: runtime-dsl · validation: Manual workspace

Topics: json, metadata, files, runtime python, external process

Source: patterns/ex-json-write-camera-metadata-for-python.json

Download JSON