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 an engineer uses the safe-stable-stringify package to serialize financial transaction objects containing BigInt values. The focus is on proper usage of the package's BigInt support and deterministic output 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 (or uses `configure` to create a custom stringify function).",
"max_score": 30
},
{
"name": "BigInt serialization",
"description": "The implementation correctly serializes BigInt values without throwing errors. This is achieved by using safe-stable-stringify's default behavior (bigint: true by default) or explicitly configuring it.",
"max_score": 35
},
{
"name": "Deterministic output",
"description": "The implementation produces consistent, deterministic output for objects with the same properties regardless of insertion order. This is achieved by using safe-stable-stringify's default deterministic behavior or explicitly configuring with deterministic: true.",
"max_score": 25
},
{
"name": "Correct integration",
"description": "The serializeTransaction function correctly integrates safe-stable-stringify into its implementation, properly passing the transaction object to the stringify function and returning the result.",
"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