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 effectively the engineer uses the safe-stable-stringify package to handle circular references in object serialization. The focus is on proper usage of the package's circular reference detection and configuration capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses safe-stable-stringify",
"description": "The implementation imports and uses the stringify function from the safe-stable-stringify package (either default export or named export).",
"max_score": 20
},
{
"name": "Circular detection works",
"description": "The implementation successfully detects and handles circular references using safe-stable-stringify's built-in circular reference detection mechanism.",
"max_score": 25
},
{
"name": "Default circular marker",
"description": "When no custom circularValue is provided, the implementation uses safe-stable-stringify's default behavior which replaces circular references with '[Circular]'.",
"max_score": 15
},
{
"name": "Custom circular value",
"description": "The implementation uses the configure() function or passes options to stringify to set a custom circularValue option that controls the replacement string for circular references.",
"max_score": 25
},
{
"name": "Null circular value",
"description": "The implementation correctly handles the case where circularValue is set to null, using safe-stable-stringify's support for null as a circularValue option.",
"max_score": 15
}
]
}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