Commit Graph

2 Commits

Author SHA1 Message Date
Pieter Noordhuis 3c3ef41588
Comment about key order 2024-10-28 16:21:41 +01:00
Pieter Noordhuis 4741593579
Add `libs/dyn/jsonsaver`
This package can be used to marshal a `dyn.Value` as JSON and retain the
ordering of keys in a mapping. The output does not encode HTML characters as
opposed to the default behavior of `json.Marshal`.

Otherwise this is no different from using `json.Marshal` with `v.AsAny()`.
2024-10-28 16:19:02 +01:00