Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Arthi-chaud/J4HSKL

Repository files navigation

J4HSKL

Manage JSON with Haskell

Build Documentation Unit tests

Features

  • Parse JSON-formatted String into Haskell data
  • Display data using JSON format
  • Native Data types

Usage

To parse JSON data from String, use parseJSON :: Parser JSONValue from J4HSKL.Parser (with Parser being a simple Parser)

If the String contains only JSON Data, use parseStrictJSON :: String -> Maybe JSONValue from J4HSKL.Parser

Read documentation here to understand how to user these parsers

In J4HSKL, a JSON Value is a data type using native Haskell data types: Bool, Integer, String, List...

Using JSONValue data, you can format them using JSON format, thanks to show

Read documentation here to understand how to manage JSON-parsed data

To import from/export to file, use respectively importJSON and exportJSON functions

These functions are documented here

Upcoming features

  • Better delivery method

Build

To build J4HSKL library, run stack build

Toolstack

  • Stack
  • HUnit
  • Haddock