{"ScriptPreparationCode":"var valid = [\u0027false\u0027, \u0027true\u0027, \u00272.5\u0027, \u0027{\u0022test\u0022: 1}\u0027];\r\nvar invalid = [\u0027025\u0027, \u0027text\u0027, \u0027FALSE\u0027, \u0027TRUE\u0027, \u0027{cat}\u0027];\r\nvar combined = [...valid, ...invalid];\r\n\r\n// src from https://www.npmjs.com/package/fast-json-parse\r\nfunction Parse (data) {\r\n if (!(this instanceof Parse)) {\r\n return new Parse(data)\r\n }\r\n this.err = null\r\n this.value = null\r\n try {\r\n this.value = JSON.parse(data)\r\n } catch (err) {\r\n this.err = err\r\n }\r\n}\r\n\r\nvar fastJsonParse = Parse;","TestCases":[{"Name":"JSON.parse combined","Code":"combined.map((value) =\u003E {\r\n\ttry {\r\n return JSON.parse(value);\r\n }\r\n \tcatch(e) {\r\n return null; \r\n }\r\n})","IsDeferred":false},{"Name":"JSON.parse invalid","Code":"invalid.map((value) =\u003E {\r\n\ttry {\r\n return JSON.parse(value);\r\n }\r\n \tcatch(e) {\r\n return null; \r\n }\r\n})","IsDeferred":false},{"Name":"JSON.parse valid","Code":"valid.map((value) =\u003E {\r\n\ttry {\r\n return JSON.parse(value);\r\n }\r\n \tcatch(e) {\r\n return null; \r\n }\r\n})","IsDeferred":false},{"Name":"fast-json-parse combined","Code":"combined.map((value) =\u003E {\r\n\tconst result = fastJsonParse(value);\r\n \treturn result.err ? null : result.value;\r\n})","IsDeferred":false},{"Name":"fast-json-parse invalid","Code":"invalid.map((value) =\u003E {\r\n\tconst result = fastJsonParse(value);\r\n \treturn result.err ? null : result.value;\r\n})","IsDeferred":false},{"Name":"fast-json-parse valid","Code":"valid.map((value) =\u003E {\r\n\tconst result = fastJsonParse(value);\r\n \treturn result.err ? null : result.value;\r\n})","IsDeferred":false}]}