MCPcopy Index your code
hub / github.com/triggerdotdev/jsonhero-web / generateColumnViewNode

Function generateColumnViewNode

app/utilities/jsonColumnView.ts:7–19  ·  view source on GitHub ↗
(json: unknown)

Source from the content-addressed store, hash-verified

5import { iconForType } from "./icons";
6
7export function generateColumnViewNode(json: unknown): ColumnViewNode {
8 const info = inferType(json);
9 const path = new JSONHeroPath("$");
10 const children = generateChildren(info, path);
11
12 return {
13 name: "root",
14 title: "root",
15 id: "$",
16 icon: iconForType(info),
17 children,
18 };
19}
20
21function generateChildren(
22 info: JSONValueType,

Callers 2

JsonColumnViewProviderFunction · 0.90

Calls 2

iconForTypeFunction · 0.90
generateChildrenFunction · 0.70

Tested by

no test coverage detected