LLM-Inference / src /lib /utils /json.ts
Thomas G. Lopes
minor improvements
5853d12
Raw History Blame
110 Bytes
export function safeParse(str: string): any {
try {
return JSON.parse(str);
} catch {
return null;
}
}