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's strict mode feature to enforce JSON validation. The focus is on proper configuration of the package's strict mode, deterministic output, and circular reference handling capabilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Strict mode enabled",
"description": "Uses configure() or stringify.configure() with strict: true option to enable strict JSON validation that throws errors for non-JSON values",
"max_score": 30
},
{
"name": "Deterministic output",
"description": "Uses deterministic: true option (or relies on the default) to ensure consistent key ordering in the serialized output",
"max_score": 20
},
{
"name": "Circular reference handling",
"description": "Configures circularValue to Error or TypeError (or relies on strict mode default) to throw errors when circular references are detected",
"max_score": 25
},
{
"name": "Proper stringify invocation",
"description": "Correctly invokes the configured stringify function (returned from configure) to serialize data, passing the data as the first argument",
"max_score": 15
},
{
"name": "Error propagation",
"description": "Allows validation errors to propagate to the caller without catching them or suppressing them inappropriately",
"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