MongoEngine / mongoengine

A Python Object-Document-Mapper for working with MongoDB
http://mongoengine.org
MIT License
4.23k stars 1.23k forks source link

how to get standard json not extended json ? #1754

Open francisliyy opened 6 years ago

francisliyy commented 6 years ago

pgi = ProcessGenInput.objects(id=pk).first() pgi.to_json() when I do like that I got extended json, it is no use, since I want to transfer json data to web page and use javascript to get data from it. Could you help me to fix it? thank you

JohnAD commented 6 years ago

I've posted your question to the mongoengine user group and responded there.

https://groups.google.com/forum/#!topic/mongoengine-users/9UnTul4VmCY

erdenezul commented 6 years ago

@francisliyy @JohnAD responded your question