A simple Purescript JSON library that uses types automatically
generated by gh:
Full Changelog: https://github.com/justinwoo/purescript-simple-json/compare/v8.0.0...v9.0.0
PureScript 0.14.0
Fixed readArray Foreign Errors
Adds read_
and readJSON_
for Maybe
forms
PureScript 0.12.0 release
Removes Foreign-Generics dependency
Same great simple usage.
null
and explicitly check for null
in reading.This release changes the signature of read
to Foreign -> Either _ a
and adds read'
as Foreign -> F a
Now there is variant support in Simple-JSON.
Tl;dr
type MyTestVariant = Variant
( a :: String
, b :: Int
)
{
"type": "b",
"value": 123
}
Many people have already been using this library to great effect, so nothing much new comes in this release except for one big change by @kRITZCREEK:
readJSON
now returns Either MultipleErrors a
readJSON'
is available to return the old F a
This makes usage for many people easier as you no longer need to manually runExcept
anymore.