PureDevTools

JSON to Haskell

Generate Haskell data types and Aeson instances from JSON samples

All processing happens in your browser. No data is sent to any server.
Generated types use Data.Aeson for JSON serialization. Add aeson and text to your Cabal/Stack dependencies.

Why This Tool

Writing Haskell data types and JSON parsing instances by hand is tedious and error-prone. This tool analyzes a JSON sample and generates the corresponding Haskell types with Aeson FromJSON/ToJSON instances.

How It Works

Paste a JSON sample into the editor. The tool infers the structure, generates Haskell data types with appropriate field types, and adds Aeson instances for JSON serialization and deserialization.

Related Tools

More JSON Tools