MCPcopy Create free account
hub / github.com/TanStack/ai / parsePartialJSON

Function parsePartialJSON

packages/ai/src/activities/chat/stream/json-parser.ts:56–58  ·  view source on GitHub ↗
(jsonString: string)

Source from the content-addressed store, hash-verified

54 * @returns The parsed object, or undefined if parsing fails
55 */
56export function parsePartialJSON(jsonString: string): any {
57 return defaultJSONParser.parse(jsonString)
58}

Callers 7

CodeModePanelFunction · 0.90
MessagesFunction · 0.90
MessagesFunction · 0.90
MessagesFunction · 0.90
handleChunkFunction · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected