MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseJson

Function parseJson

packages/core/integrations-registry/src/registry.ts:110–114  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

108const decodeJsonOption = Schema.decodeUnknownOption(UnknownFromJsonString);
109
110const parseJson = (text: string): IntegrationsRegistryData => {
111 const decoded = decodeJsonOption(text);
112 if (Option.isNone(decoded)) return undefined;
113 return decoded.value;
114};
115
116export const layer = (
117 config: IntegrationsRegistryConfig,

Callers 1

layerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected