aeson-yaml alternatives and similar packages
Based on the "aeson" category.
Alternatively, view aeson-yaml alternatives based on common mentions on social networks and blogs.
8.3 7.6 aeson-yaml VS aeson-typescriptGenerate TypeScript definition files from your ADTs
7.4 7.6 aeson-yaml VS aeson-schemasEasily consume JSON data on-demand with type-safety
Do you think we are missing an alternative of aeson-yaml or a related project?
BSD3-licensed, pure Haskell library to encode any Aeson value as YAML.
import qualified Data.Aeson.Yaml as Aeson.Yaml Aeson.Yaml.encode :: ToJSON a => a -> LazyByteString -- To encode multiple values, separated by '---' (YAML documents), -- use `encodeDocuments`. Aeson.Yaml.encodeDocuments :: ToJSON a => [a] -> LazyByteString -- To encode values of different types, use `toJSON` from `Data.Aeson` -- like so: encodeDocuments [toJSON x, toJSON y, toJSON z]
See [bin/JsonToYaml.hs](bin/JsonToYaml.hs) for a simple command-line application using this library.
This library does not depend on any external YAML library with C bindings,
yaml, or a restrictive license, like
HsYaml (GPLv3). Note, though,
that this library can only be used for encoding, not decoding.
This library also works with GHCJS and Eta.
*Note that all licence references and agreements mentioned in the aeson-yaml README section above are relevant to that project's source code only.