serde-ml / serde

Serialization framework for OCaml
MIT License
174 stars 11 forks source link

fix: add missing s.kind <- First in serde_json #25

Closed sabine closed 7 months ago

sabine commented 7 months ago

JSON serializer would emit leading , on records and sequences. Setting s.kind to First when starting to serialize sequences and records seems to fix the problem.