skip to Main Content

How to sort output before writing to JSON

I have a problem with sorting data. When I use the json_dic.sort(key= lambda x: x['lastLogonTimestamp'], reverse= False) command I get an error TypeError: '<' not supported between instances of 'str' and 'list'. When I checked the output with the type()…

VIEW QUESTION
Back To Top
Search