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 deterministic key ordering capability to generate consistent hash strings from objects. The focus is on proper usage of the package's stringify function with deterministic behavior enabled by default.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports stringify",
"description": "Uses require() or import to load the stringify function from the safe-stable-stringify package",
"max_score": 15
},
{
"name": "Uses stringify function",
"description": "Calls the stringify() function (or a configured variant) from safe-stable-stringify to serialize objects into strings",
"max_score": 35
},
{
"name": "Leverages deterministic ordering",
"description": "Relies on the default deterministic behavior of safe-stable-stringify (alphabetically sorted keys) without needing to explicitly configure it, OR explicitly configures deterministic: true if using configure()",
"max_score": 30
},
{
"name": "Returns string output",
"description": "The function returns the string output from stringify() as the final hash representation, enabling consistent hashing",
"max_score": 20
}
]
}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