saner format for metadata --json

metadata --json output format has changed, adding a inner json object
named "fields" which contains only the fields and their values.

This should be easier to parse than the old format, which mixed up
metadata fields with other keys in the json object.

Any consumers of the old format will need to be updated.

This adds a dependency on unordered-containers for parsing MetaData
from JSON, but it's a free dependency; aeson pulls in that library.
This commit is contained in:
Joey Hess 2016-07-26 14:53:00 -04:00
parent 5c92b8e034
commit 8bc8469c38
Failed to extract signature
6 changed files with 80 additions and 6 deletions

1
debian/control vendored
View file

@ -25,6 +25,7 @@ Build-Depends:
libghc-uuid-dev,
libghc-json-dev,
libghc-aeson-dev,
libghc-unordered-containers-dev,
libghc-ifelse-dev,
libghc-bloomfilter-dev,
libghc-edit-distance-dev,