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

Function isJSON

app/jsonDoc.server.ts:157–164  ·  view source on GitHub ↗
(possibleJson: string)

Source from the content-addressed store, hash-verified

155}
156
157function isJSON(possibleJson: string): boolean {
158 try {
159 JSON.parse(possibleJson);
160 return true;
161 } catch (e: any) {
162 throw new Error(e.message);
163 }
164}

Callers 1

createFromUrlOrRawJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected