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.

Building & cleaning JSON (H. JSON)
| Icon | Component | Nickname | What it does | Preview |
|---|---|---|---|---|
| JSON Object | JsonObject | Create a JSON object from parallel lists of Key and Value (numbers, booleans, and nested JSON are preserved as native JSON values). | ![]() | |
| JSON Array | JsonArray | Create a JSON array from a list of Items (numbers, booleans, and nested JSON are preserved). | ![]() | |
| JSON Merge | JsonMerge | Shallow-merge a list of JSON object strings (JSONs) into one (JSON); later objects overwrite earlier keys on conflict. | ![]() | |
| JSON Sanitizer | JsonSanitize | Recover 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. | ![]() |
Querying & formatting JSON (H. JSON)
| Icon | Component | Nickname | What it does | Preview |
|---|---|---|---|---|
| JSON Get Value | JsonGetValue | Extract a nested value from JSON using a dot- or bracket-notation Path (e.g., address.city or results[0].name). | ![]() | |
| JSON Set Value | JsonSetValue | Set or update a nested value in JSON at Path to Value (creates intermediate objects/arrays automatically). | ![]() | |
| JSON Array To Text List | JsonArray2Text | Parse a JSON array string (JSON) into a Grasshopper text list (Items), stripping outer quotes from strings. | ![]() | |
| JSON To Text | Json2Text | Format a JSON string as compact single-line text or indented pretty-printed JSON (Pretty = True). | ![]() |
Building JSON Schemas for AI output (H. JSON)
| Icon | Component | Nickname | What it does | Preview |
|---|---|---|---|---|
| JSON Schema Property | JsonSchemaProp | Define a single property (Name, Description, Type, Array?, Required?). Outputs a Property definition string. | ![]() | |
| JSON Schema Object | JsonSchemaObj | Group child Properties from Name. | ![]() | |
| JSON Schema | JsonSchema | Assemble a complete JSON Schema from Properties ( plus optional Title, Description, and top-level Array?). | ![]() |
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.











