jsont

Community

Type-safe JSON codecs for OCaml.

Authoraresbit
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a type-safe approach to encoding and decoding JSON in OCaml by leveraging the jsont library. It helps you define codecs for OCaml records, ensuring JSON structures conform to your types and preventing runtime errors during data exchange.

Core Features & Use Cases

  • Type-safe object codecs: Define codecs for OCaml records using Jsont.Object to map required fields
  • Optional fields and defaults: Use opt_mem to handle missing fields with sensible defaults
  • Nested structures and lists: Compose codecs for nested objects, lists, and maps; support null values with Jsont.null
  • Practical use cases: Parse JSON responses from APIs, validate configuration files, and serialize OCaml data to JSON

Quick Start

Start by adding the Jsont dependency to your OCaml project, then create a module defining your data types and their codecs. Use decode and encode helpers to convert between JSON and OCaml values.

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: jsont
Download link: https://github.com/aresbit/MateBot/archive/main.zip#jsont

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 223,000+ vetted skills library on demand.