Deterministic and safely JSON.stringify to quickly serialize JavaScript objects
90
Evaluation — 90%
↑ 1.08xAgent success when using this tile
{
"context": "This criteria evaluates how well the engineer uses the safe-stable-stringify package's safe mode capability to handle errors from getters and toJSON methods during serialization. The focus is on proper usage of the configure function with the safe option enabled.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Package import",
"description": "Imports safe-stable-stringify package correctly (either the default stringify function or the configure function, or both)",
"max_score": 10
},
{
"name": "Configure function usage",
"description": "Uses the configure() function from safe-stable-stringify to create a customized stringify instance",
"max_score": 30
},
{
"name": "Safe option enabled",
"description": "Passes { safe: true } as an option to the configure() function to enable error catching from toJSON methods and property getters",
"max_score": 40
},
{
"name": "Configured stringify usage",
"description": "Uses the stringify function returned by configure() to serialize the data parameter in the safeLog function",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-safe-stable-stringifydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10