databricks-cli/libs/dyn/jsonsaver
Pieter Noordhuis fa25b92ba1
Add `libs/dyn/jsonsaver` (#1862)
## Changes

This package can be used to marshal a `dyn.Value` as JSON and retain the
ordering of keys in a mapping. Unlike the default behavior of
`json.Marshal,` the output does not encode HTML characters.

Otherwise, this is no different from using `JSON.Marshal` with
`v.AsAny().`

## Tests

Unit tests.
2024-10-29 15:32:33 +00:00
..
encoder.go Add `libs/dyn/jsonsaver` (#1862) 2024-10-29 15:32:33 +00:00
encoder_test.go Add `libs/dyn/jsonsaver` (#1862) 2024-10-29 15:32:33 +00:00
marshal.go Add `libs/dyn/jsonsaver` (#1862) 2024-10-29 15:32:33 +00:00
marshal_test.go Add `libs/dyn/jsonsaver` (#1862) 2024-10-29 15:32:33 +00:00