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 to implement depth-limited serialization of nested configuration objects, focusing specifically on the maximumDepth configuration option and the configure() function.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses safe-stable-stringify",
"description": "The solution imports and uses the safe-stable-stringify package (via require or import)",
"max_score": 15
},
{
"name": "Uses configure() function",
"description": "The solution uses the configure() function from safe-stable-stringify to create a customized stringify instance with specific options",
"max_score": 25
},
{
"name": "Sets maximumDepth option",
"description": "The solution correctly configures the maximumDepth option based on the maxDepth parameter passed to serializeConfig",
"max_score": 30
},
{
"name": "Uses deterministic option",
"description": "The solution sets deterministic: true (or relies on the default) to ensure alphabetically sorted keys for consistent output",
"max_score": 20
},
{
"name": "Returns serialized string",
"description": "The solution calls the configured stringify function on the config object and returns the resulting JSON string",
"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