MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / isJsonString

Function isJsonString

lib/utils.ts:89–96  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

87}
88
89export function isJsonString(str: string) {
90 try {
91 JSON.parse(str);
92 } catch (e) {
93 return false;
94 }
95 return true;
96}
97
98export function openAiCost(
99 messages: ChatGPTMessage[],

Callers 2

textToJsonFunction · 0.90
JsonTextBoxFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected