CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-safe-stable-stringify

Deterministic and safely JSON.stringify to quickly serialize JavaScript objects

90

1.08x

Evaluation90%

1.08x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "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-stringify

tile.json