In order to allow non-dict objects to be serialized set the safe parameter to False.
展开阅读全文