MCPcopy
hub / github.com/simstudioai/sim / isJsonObject

Function isJsonObject

apps/sim/app/api/mcp/serve/[serverId]/route.ts:227–229  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

225}
226
227function isJsonObject(value: unknown): value is Record<string, unknown> {
228 return value !== null && typeof value === 'object' && !Array.isArray(value)
229}
230
231function parseJsonValue(text: string): { success: true; value: unknown } | { success: false } {
232 if (!text) return { success: true, value: {} }

Callers 1

handleToolsCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected