Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

parsePartialJSON.md

26 lines384 Bytes

1---
2id: parsePartialJSON
3title: parsePartialJSON
4---
5​
6```ts
7function parsePartialJSON(jsonString): any;
8```
9​
10Defined in: packages/ai/src/activities/chat/stream/json-parser.ts:56
11​
12Parse partial JSON string (convenience function)
13​
14## Parameters
15​
16### jsonString
17​
18`string`
19​
20The JSON string to parse (may be incomplete)
21​
22## Returns
23​
24`any`
25​
26The parsed object, or undefined if parsing fails