Bug fix: quit if there is an empty query
Terms are encoded in byte object and it doesn't match a JSON object type
Output human readable JSON