Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Jack-Works/proposal-json-tryParse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON.tryParse

Rejected by tc39 on Nov 2023.

Problem to solve

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

Prior art

URL.canParse

Spec

JSON.parse ( _text_ [ , _reviver_ ] )

1. Let _result_ be Completion(Call(%JSON.parse%, *null*, << _text_, _reviver_ >> )).
1. If _result_ is an abrupt completion, return *undefined*.
1. Return _result_.

About

JSON.canParse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published