Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Creating Document from JSON

42 views
Skip to first unread message

John Smith

unread,
Aug 11, 2022, 6:31:13 AM8/11/22
to MongoEngine Users
I've got some JSON that uses Camel Case naming for fields which comes from a library. I understand I can use the ** kwargs operator in the Document constructor however I want to use underscore naming for fields in my code. I've written a function in my Document class to deserialise from json and map the correct names. Is there a formal way of doing this?
Thanks
Reply all
Reply to author
Forward
0 new messages