Skip to main content

JSON Components

Build, query, modify, merge, sanitize, and schema-validate JSON directly on the canvas (SmartHopper → H. JSON) — no AI provider required for any of the utility components below.

JSON components

Building & cleaning JSON (H. JSON)​

IconComponentNicknameWhat it doesPreview
JSON Object iconJSON ObjectJsonObjectCreate a JSON object from parallel lists of Key and Value (numbers, booleans, and nested JSON are preserved as native JSON values).json-object
JSON Array iconJSON ArrayJsonArrayCreate a JSON array from a list of Items (numbers, booleans, and nested JSON are preserved).json-array
JSON Merge iconJSON MergeJsonMergeShallow-merge a list of JSON object strings (JSONs) into one (JSON); later objects overwrite earlier keys on conflict.json-merge
JSON Sanitizer iconJSON SanitizerJsonSanitizeRecover valid JSON from a malformed or AI-generated string (strips Markdown code fences, extracts the first JSON object/array, escapes control chars, fixes smart quotes and trailing commas, and closes unbalanced brackets). Set Minify (M) for compact single-line output. Outputs JSON, Summary, Is Object, and Is Array.json-sanitizer

Querying & formatting JSON (H. JSON)​

IconComponentNicknameWhat it doesPreview
JSON Get Value iconJSON Get ValueJsonGetValueExtract a nested value from JSON using a dot- or bracket-notation Path (e.g., address.city or results[0].name).json-get-value
JSON Set Value iconJSON Set ValueJsonSetValueSet or update a nested value in JSON at Path to Value (creates intermediate objects/arrays automatically).json-set-value
JSON Array To Text List iconJSON Array To Text ListJsonArray2TextParse a JSON array string (JSON) into a Grasshopper text list (Items), stripping outer quotes from strings.json-array-to-text-list
JSON To Text iconJSON To TextJson2TextFormat a JSON string as compact single-line text or indented pretty-printed JSON (Pretty = True).json-to-text

Building JSON Schemas for AI output (H. JSON)​

IconComponentNicknameWhat it doesPreview
JSON Schema Property iconJSON Schema PropertyJsonSchemaPropDefine a single property (Name, Description, Type, Array?, Required?). Outputs a Property definition string.json-schema-property
JSON Schema Object iconJSON Schema ObjectJsonSchemaObjGroup child Properties from JSON Schema Property icon JSON Schema Property components under a nested object (or array of objects) named Name.json-schema-object
JSON Schema iconJSON SchemaJsonSchemaAssemble a complete JSON Schema from Properties ( plus optional Title, Description, and top-level Array?).json-schema

Using schemas with AI​

Wire the Schema output of JSON Schema into either:

  • AI to JSON (SmartHopper → C. Output) in an Input → Output pipeline, or
  • AI Text To JSON (SmartHopper → I. Text & Lists) for a single-component prompt + schema call.

JSON Schema driving a validated AI Text To JSON request