[v0.9] JsonSerialisation.ts (#494)
[v0.9] JsonSerialisation.ts (#494)

* feat: port JsonSerialisation.ts

* fix: writeInt & writeFloat

* fix: add missing return and fix typos
y-lohse/inkjs,y-lohse/inkjs,y-lohse/inkjs