Skip to content

JSON to Haskell

Generate Haskell data type definitions from your JSON data samples. Perfect for Haskell developers working with Aeson.

Input

json
loading editor…

Paste your JSON here...
or drop a file anywhere in this pane

Output

haskell

Haskell types will appear here...
press to generate haskell

What Is This Tool?

Generate Haskell data type definitions with Generic and Aeson deriving from your JSON data. Each JSON object becomes a Haskell data type with proper field types.

How to Use

  1. Paste your JSON data into the input editor.
  2. Click "Generate Haskell" to create type definitions.
  3. Copy the Haskell code into your project.

Related Tools