← Back to directory

Infer TypeScript, Go, Rust or Python type definitions from one or more JSON samp...

https://code.halowerk.com/v1/json-to-types

Overview

Infer TypeScript, Go, Rust or Python type definitions from one or more JSON samples, with optional fields and nested types detected across samples. Feeds up to 100 JSON samples into quicktype-core 26.0.0 and renders type definitions only (TypeScript interfaces, Go structs with json tags, Rust serde structs, Python 3.7 dataclasses). Properties missing in some samples become optional; nulls become nullable; integers and floats are distinguished.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category crypto/defi
Provider code
Source bazaar
Indexed 2026-11-20 13:10:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "language": "typescript", "samples": [ { "id": 1, "name": "Lamp", "price": 9.5, "tags": [ "new" ] } ], "type_name": "Product" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "code": "export interface Product {\n id: number;\n name: string;\n tags: string[];\n price: number;\n}\n", "generator": "quicktype-core 26.0.0", "inference": { "combineClasses": true, "inferBooleanStrings": false, "inferDateTimes": false, "inferEnums": false, "inferIntegerStrings": false, "inferMaps": true, "inferUuids": false }, "language": "typescript", "renderer_options": { "just-types": "true", "prefer-unions": "true" }, "samples_used": 1, "types": [ "Product" ] }, "service": "json-to-types", "status": "success" }, "type": "json" }