A Json implementation for Haskell, with JavaScript Values and Encoding/Decoding https://github.com/brunoczim/Json-Data-for-Haskell

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Bruno CorrĂȘa Zimmermann
Maintained by brunoczim@gmail.com


A JSON implementation for haskell

module Main(
) where
import Data.Jdh.Json

main :: IO ()
main = do
    print $ fromArray [fromInt 3, fromInt 5, fromStr "Haha"]
    putStrLn $ encode True $ fromProps ["field1" =: fromInt 5, "field2" =: fromReal 3.5]
    putStrLn $ encode False $ fromProps ["condensed JSON data" =: fromBool True]
    print $ decode "{\"hello\": [\"world\"], \"nested\": {\"nested\": true}}"
    return ()
Depends on 1 package:
Used by 1 package:
comments powered byDisqus