products = db.query(models.Product).all()当我转到localhost:5000/products时,上面的内容很好,我得到了一个JSON我想将这个JSON文件保存在我的计算机上,但是下面的代码返回一个错误: with open('save_products.json', 'w', e
每当我试图在我的网站上使用paypal付款时,它就会抛出一个错误。\encoder.py", line 179, in defaultTypeError: Object of type Decimal is not JSON serializabledef pay(request, pk):details': "invalide r