MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / isJsonObject

Function isJsonObject

client/src/lib/proxyFetch.ts:12–14  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

10}
11
12function isJsonObject(value: unknown): value is Record<string, unknown> {
13 return typeof value === "object" && value !== null && !Array.isArray(value);
14}
15
16/**
17 * JSON body from POST /fetch when the proxy itself failed (auth, TLS, etc.),

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected