Skip to content

Commit

Permalink
Use {"tag": "Str", "val": "foo"} format for JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Oct 16, 2013
1 parent cc73b4f commit 83d600b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Text/Pandoc/Definition.hs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ jsonOpts = Aeson.Options{ Aeson.fieldLabelModifier = id
, Aeson.constructorTagModifier = id
, Aeson.allNullaryToStringTag = False
, Aeson.omitNothingFields = False
, Aeson.sumEncoding = Aeson.ObjectWithSingleField
, Aeson.sumEncoding = Aeson.TaggedObject "tag" "val"
}

toJSON' :: (Generic a, Aeson.GToJSON (Rep a))
Expand Down

0 comments on commit 83d600b

Please sign in to comment.