[GH-ISSUE #4758] [FEAT]: Remove all JSON.parse and replace with safeJsonParse util #3003

Closed
opened 2026-02-22 18:32:13 -05:00 by yindo · 0 comments
Owner

Originally created by @shatfield4 on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4758

Originally assigned to: @shatfield4 on GitHub.

What would you like to see?

In the frontend we have several legacy JSON.parse calls that can potentially throw error boundaries.

We need to refactor every instance of JSON.parse in the frontend to use safeJSONParse in utils/requests that also includes a fallback to the specific conditions' sensible failover value.

Originally created by @shatfield4 on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4758 Originally assigned to: @shatfield4 on GitHub. ### What would you like to see? In the frontend we have several legacy JSON.parse calls that can potentially throw error boundaries. We need to refactor every instance of JSON.parse in the frontend to use safeJSONParse in utils/requests that also includes a fallback to the specific conditions' sensible failover value.
yindo added the enhancementcore-team-onlyfeature request labels 2026-02-22 18:32:13 -05:00
yindo closed this issue 2026-02-22 18:32:13 -05:00
yindo changed title from [FEAT]: Remove all JSON.parse and replace with safeJsonParse util to [GH-ISSUE #4758] [FEAT]: Remove all JSON.parse and replace with safeJsonParse util 2026-06-05 14:49:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3003