1 module Gargantext.Utils.Aeson where
3 import Data.Aeson.Types
5 -- this is what purescript Simple.JSON generics assumes
6 defaultTaggedObject :: SumEncoding
7 defaultTaggedObject = TaggedObject { tagFieldName = "type", contentsFieldName = "value" }