JSON.safeParse():call JSON.parse() in try/catch?

This is on the agenda for the next meeting for stage 1, so still early but related.

Problem to solve

try { return JSON.parse(str) } catch { return undefined }

1 Like