Aeson.hs 243 Bytes
Newer Older
1 2 3 4 5 6 7
module Gargantext.Utils.Aeson where

import Data.Aeson.Types

-- this is what purescript Simple.JSON generics assumes
defaultTaggedObject :: SumEncoding
defaultTaggedObject = TaggedObject { tagFieldName = "type", contentsFieldName = "value" }