databricks-cli/libs/dyn/dynassert
Pieter Noordhuis fa25b92ba1
Add `libs/dyn/jsonsaver` ()
## 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
..
assert.go Add `libs/dyn/jsonsaver` () 2024-10-29 15:32:33 +00:00
assert_test.go Define `dyn.Mapping` to represent maps () 2024-03-25 11:01:09 +00:00
dump.go Add behavioral tests for examples from the YAML spec () 2024-10-17 13:13:30 +00:00