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 safe-stable-stringify as a drop-in replacement for JSON.stringify, focusing on the basic stringify function signature and parameter support (value, replacer, space).",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses safe-stable-stringify",
"description": "Imports and uses the stringify function from safe-stable-stringify package (either default export or named export)",
"max_score": 25
},
{
"name": "Accepts value parameter",
"description": "The serializeConfig function accepts the value parameter and passes it to stringify as the first argument",
"max_score": 15
},
{
"name": "Supports replacer parameter",
"description": "The serializeConfig function accepts the replacer parameter (function or array) and passes it to stringify as the second argument, enabling both function replacers and array replacers",
"max_score": 25
},
{
"name": "Supports space parameter",
"description": "The serializeConfig function accepts the space parameter (number or string) and passes it to stringify as the third argument for indentation/formatting",
"max_score": 25
},
{
"name": "Returns string result",
"description": "The serializeConfig function returns the string result from stringify without modification",
"max_score": 10
}
]
}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