You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not so sure that {} is really reasonable. Maybe null would be more apt, but then still I think that most users would want to know if the parsing failed with a proper error rather than just by receiving null.
if JSON.parse fails it should return {}
maybe you can do someting like
The text was updated successfully, but these errors were encountered: