plutus-core-1.36.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Aeson.Flatten

Synopsis

Documentation

flattenObjectText → Object → Object Source #

Turn a nested object into a "flat" object where the keys represent paths into the original object. The keys in the result will be the keys in the original path, separated by sep. The inverse of unflattenObject.

unflattenObjectText → Object → Object Source #

Turn a "flat" object whose keys represent paths into an unflattened object. The keys in the result will be the resulting path, separated by sep. The inverse of flattenObject.

mergeObject ∷ Object → Object → Object Source #

Merge two objects, merging the values where both sides have an entry for a key rather than taking the first.

mergeValue ∷ Value → Value → Value Source #

Merge two values, merging the objects using mergeObject. Can't merge anything else.

objToHm ∷ Object → HashMap Text Value Source #

Convert an object to a hashmap. Compatibility shim for pre-/post-aeson-2.

hmToObjHashMap Text Value → Object Source #

Convert a hashmap to an object. Compatibility shim for pre-/post-aeson-2.