Объект Whoosh Results в основном представляет собой список словарей. Из примеров :
>>> # Show the best hit's stored fields
>>> results[0]
{"title": u"Hello World in Python", "path": u"/a/b/c"}
>>> results[0:2]
[{"title": u"Hello World in Python", "path": u"/a/b/c"}, {"title": u"Foo", "path": u"/bar"}]
Вы можете очень легко превратить это в JSON:
import json
def results2json(results):
return json.dumps([r for r in results])