output format suitable for importing into couchdb