git.iko.soy/rowtype-yoga/purescript-yoga-json
on main help sign in
Update README.md
commit34851cb1391ec8d91d48c33be564f08946f78eee authorMark Eibes <mark.eibes@gmail.com> dateMon 4 Jul 2022, 19:12 (4 years ago) parent0c1654c
1 file changed+8
README.md+8
README.md+8
@@ -24,11 +24,19 @@ Check out the tests for how to encode/decode increasingly complex types.
2424
2525## Differences to `simple-json`
2626
27+### Tuples
2728There is an inbuilt codec for `Tuple`s thanks to @ursi
2829
30+### Generics
2931It includes @justinwoo's codecs for en- and decoding generics inspired by
3032[simple-json-generics](https://github.com/justinwoo/purescript-simple-json-generics)
3133
34+### BigInts
35+It can *read* bigints (if you install `big-integer` as a JS dependency).
36+
37+### 💣 Cannot write bigints as bigints but only strings
38+It seems that there is no way to write bigints in JavaScript except for writing your own `JSON.stringify`.
39+
3240### 💣 The Variant Codec is different
3341If you want to emulate `simple-json`'s format you may use the newtype `TaggedVariant`
3442