Skip to main content

Interactive Demo

Test Shim with real malformed JSON. No signup required. Visit shim.so/demo to try the interactive playground.

Features

The demo includes:
  • Monaco Editor: Syntax highlighting for JSON
  • 12 Real-World Examples: Common LLM JSON failure patterns
  • Schema Editor: Test with your own JSON schema
  • Repair Details: View applied repairs, confidence levels, and latency
  • Copy Buttons: Easily copy input/output to clipboard
  • Rate Limiting: 10 requests per hour (no API key required)

Limitations

The demo is for evaluation only. Production use requires an API key:

Example Repairs

The demo showcases common repair scenarios:

1. Truncated Object

Input:
Repair: Closes the missing bracket. Confidence: High

2. Markdown Fence

Input:
Repair: Strips markdown code fences. Confidence: High

3. Trailing Comma

Input:
Repair: Removes trailing comma. Confidence: High

4. Unquoted Keys

Input:
Repair: Adds quotes around keys. Confidence: High

5. Single Quotes

Input:
Repair: Converts single quotes to double quotes. Confidence: High

6. Unquoted Values

Input:
Repair: Quotes the string value active. Confidence: Medium

7. JavaScript Comments

Input:
Repair: Removes comments. Confidence: High

8. JavaScript Special Values

Input:
Repair: Converts to null. Confidence: High

9. Malformed Decimals

Input:
Repair: Normalizes to 0.5 and 5. Confidence: High

10. Multiple Commas

Input:
Repair: Removes duplicate comma. Confidence: High

11. Leading Text

Input:
Repair: Strips leading text before JSON. Confidence: High

12. Combined Issues

Input:
Repair: Applies multiple fixes (unquoted keys, single quotes, comments, multiple commas, JS values). Confidence: Medium (due to multiple repairs)

Schema Validation

The demo includes a schema editor to test schema-aware repairs:

Example: User Profile Schema

Input:
Repair: Coerces "30" (string) to 30 (number) to match schema. Confidence: Medium (schema repair)

Rate Limiting

Demo endpoint is IP-based rate limited:
  • Limit: 10 requests per hour per IP
  • Headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
  • Reset: 1 hour from first request
Exceeded rate limit? Sign up for a free API key to get 1,000 repairs/month with 100 requests/minute.

Using Your Own JSON

The demo supports custom input:
  1. Click in the input editor
  2. Paste your malformed JSON
  3. Optionally add a schema in the schema editor
  4. Click “Repair JSON”
  5. See the repaired output and repair details

API Endpoint

The demo uses the public endpoint:
Request:
Response:

Get API Key

Ready for production? Sign up for a free API key:

Sign Up

Get your free API key (1,000 repairs/month)
Free tier includes:
  • 1,000 repairs/month
  • 100 requests/minute
  • Batch + streaming repair
  • Schema validation
  • Dashboard analytics

Next Steps

Quick Start

Get your first repair working in 5 minutes

API Reference

Complete API documentation

TypeScript SDK

Install the official SDK

Streaming Repair

Real-time repair for LLM streams