Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

JSONParser

Interface: JSONParser

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

JSON Parser interface - allows for custom parser implementations

Properties

parse()

ts
parse: (jsonString) => any;
parse: (jsonString) => any;

Defined in: 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