tsentials-json

Community

Parse and validate JSON safely, no throws.

Authorsenrecep
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents runtime crashes from malformed or unsafe JSON by replacing exception-based parsing with Result-based workflows that fit railway pipelines.

Core Features & Use Cases

  • Safe parsing without exceptions: Use safeJsonParse to return Result<Json> instead of throwing on invalid input.
  • Safe stringify with failure reporting: Use safeJsonStringify to return Result<string> and capture common stringify failures like circular references.
  • Typed parse + validation: Use parseAndValidate with custom type guards (often combining isJson/isJsonObject/isJsonArray) to produce domain-typed results.

Quick Start

Ask your AI to parse the payload with safeJsonParse, validate its shape with parseAndValidate, and return the typed value (or structured errors) for the rest of your pipeline.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tsentials-json
Download link: https://github.com/senrecep/tsentials/archive/main.zip#tsentials-json

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.