0
Fork 0
mirror of https://github.com/TanStack/ai.git synced 2026-11-16 19:38:41 +00:00
ai/docs/reference/interfaces/JSONParser.md
github-actions[bot] 5701bf5184
docs: regenerate API documentation (#1141)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-18 19:53:35 +02:00

732 B

id title
JSONParser JSONParser

Interface: JSONParser

Defined in: packages/ai/src/activities/chat/stream/json-parser.ts:12

JSON Parser interface - allows for custom parser implementations

Properties

parse

parse: (jsonString) => any;

Defined in: packages/ai/src/activities/chat/stream/json-parser.ts:18

Parse a JSON string (may be incomplete/partial)

Parameters

jsonString

string

The JSON string to parse

Returns

any

The parsed object, or undefined if parsing fails