git.iko.soy/rowtype-yoga/purescript-yoga-json
on main help sign in
Update readme
commit09d459fe06d1cff7b2b9e8b396f766cfd8ca33c7 authorsigma-andex <77549848+sigma-andex@users.noreply.github.com> dateMon 17 Oct 2022, 18:50 (4 years ago) parent89552cb
1 file changed+1−4
README.md+1−4
README.md+1−4
@@ -48,10 +48,7 @@ It includes @justinwoo's codecs for en- and decoding generics inspired by
4848It is possible to customise the representation of enums, tagged sum types, and untagged sum types via options.
4949
5050### BigInts
51−It can *read* bigints (if you install `big-integer` as a JS dependency).
52−
53−### 💣 Cannot write bigints as bigints but only strings
54−It seems that there is no way to write bigints in JavaScript except for writing your own `JSON.stringify`.
51+There is an inbuilt codec for `BigInt`. Writing a `BigInt` however will result in a String. This is a current limitation of JavaScript and the only way around it - it seems - is writing your own JSON.stringify method (which is out of scope of this project).
5552
5653## Differences to `simple-json`
5754