[json] handle format_collection

This commit is contained in:
Bezleputh 2014-06-22 18:52:16 +02:00 committed by Romain Bignon
commit aeab3fac71
2 changed files with 17 additions and 0 deletions

View file

@ -57,6 +57,9 @@ class JsonFormatter(IFormatter):
def format_dict(self, item):
self.queue.append(item)
def format_collection(self, collection, only):
self.queue.append(collection.to_dict())
class JsonLineFormatter(IFormatter):
"""