I am receiving an output like [<ColletionName: ColletionName object>]. But when I try using json dumps and loads as shown below, it returns only the heading of the table and not along with the body.
return loads(dumps(cursor))
This returns only the table headers and not along with the value. How to get the complete values in JSON format from cursor list using python/pymongo?