as-json

Community

Extract JSON from messy text

Authorbdambrosio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill cleans up messy text, extracting structured JSON data even when it's embedded within other content like explanations or code fences.

Core Features & Use Cases

  • JSON Extraction: Reliably pulls JSON objects from LLM responses or other text.
  • Noise Removal: Automatically strips preambles, postambles, and markdown code fences (json ... ).
  • Field Extraction: Optionally extracts specific field values from the JSON, recursively searching nested structures.
  • Use Case: You receive an LLM response that includes a JSON payload along with explanatory text. Use this Skill to isolate and extract just the JSON, or a specific piece of data like a URL or an email address from within it.

Quick Start

Use the as-json skill to extract the JSON from the variable $llm_response and save it to $parsed.

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: as-json
Download link: https://github.com/bdambrosio/Cognitive_workbench/archive/main.zip#as-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 223,000+ vetted skills library on demand.