MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / isMalformedJsonString

Function isMalformedJsonString

packages/common/src/object.ts:9–14  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

7 );
8}
9function isMalformedJsonString(value: string): boolean {
10 return (
11 (value.startsWith('{') && !value.endsWith('}')) ||
12 (value.startsWith('[') && !value.endsWith(']'))
13 );
14}
15
16export function toDots(
17 obj: Record<string, unknown>,

Callers 1

toDotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected