2👍
✅
Actually serialize
takes as its first parameter the format to serialize to. Normally this is ‘json’ or ‘xml’ but you can also use ‘python’, which converts to a standard Python dict.
Source:stackexchange.com