Download frontend/src/core/utils/json.ts from yonagush/deerflow: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/utils/json.ts
- Command line
-
hf download hf://spaces/yonagush/deerflow/frontend/src/core/utils/json.ts
-
curl -L -o json.ts https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/core/utils/json.ts
194 Bytes
| import { parse } from "best-effort-json-parser"; | |
| export function tryParseJSON(json: string) { | |
| try { | |
| const object = parse(json); | |
| return object; | |
| } catch { | |
| return undefined; | |
| } | |
| } | |