how to parse json where key is variable in python?
问题 i am parsing a log file which is in json format, and contains data in the form of key : value pair. i was stuck at place where key itself is variable. please look at the attached code in this code i am able to access keys like username,event_type,ip etc. problem for me is to access the values inside the "submission" key where i4x-IITB-CS101-problem-33e4aac93dc84f368c93b1d08fa984fc_2_1 is a variable key which will change for different users, how can i access it as a variable ? { "username":