aboutsummaryrefslogtreecommitdiff
path: root/Command/MetaData.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-26 13:30:07 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-26 13:30:07 -0400
commit3eb54bb464b4566e5ea5fe9db5addc20231597d0 (patch)
tree265691703d3ee1c8f64dc6accc7dd0c30fbb3c3b /Command/MetaData.hs
parent4ee3e4194a716273f68641ba0312339ab7c70b8b (diff)
allow using Aeson for streaming JSON output
Keeping Text.JSON use for now, because it seems a better fit for most of the commands, which don't use very structured JSON objects, but just output whatever fields suites them. But this lets Aeson be used when a more structured data type is available to serialize to JSON.
Diffstat (limited to 'Command/MetaData.hs')
-rw-r--r--Command/MetaData.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/MetaData.hs b/Command/MetaData.hs
index 14e727fc7..3123a63d0 100644
--- a/Command/MetaData.hs
+++ b/Command/MetaData.hs
@@ -96,7 +96,7 @@ perform now o k = case getSet o of
cleanup :: Key -> CommandCleanup
cleanup k = do
l <- map unwrapmeta . fromMetaData <$> getCurrentMetaData k
- maybeShowJSON l
+ maybeShowJSON (JSONObject l)
showLongNote $ unlines $ concatMap showmeta l
return True
where