Deterministic and safely JSON.stringify to quickly serialize JavaScript objects
90
Evaluation — 90%
↑ 1.08xAgent success when using this tile
{
"context": "This evaluation assesses how effectively the engineer uses safe-stable-stringify's maximumBreadth configuration option to limit the number of properties and elements displayed in object and array serialization.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses configure function",
"description": "Implementation imports and calls the configure() function from safe-stable-stringify to create a customized stringify instance",
"max_score": 25
},
{
"name": "Sets maximumBreadth option",
"description": "Implementation correctly passes the maximumBreadth option to configure() with the appropriate numeric value based on the maxItems parameter",
"max_score": 30
},
{
"name": "Returns configured stringify",
"description": "The createPreviewGenerator function returns the configured stringify function (or a wrapper that calls it) so it can be used to serialize values",
"max_score": 20
},
{
"name": "Handles breadth limiting",
"description": "Implementation correctly produces truncated output for objects and arrays exceeding the limit, including the omission indicator (e.g., '...': 'N items not stringified')",
"max_score": 15
},
{
"name": "Works with nested structures",
"description": "Implementation correctly applies the breadth limit at each nesting level when serializing nested objects and arrays",
"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