(CODE MUST BE IN PYTHON) Write a function calledjsontolist(string) that accepts a string argument that will havethe JSON format specified above. You can assume any string yourfunction will be given has the proper format. This function mustuse string and list operations to extract each key/value pair andreturn them in a 2D list. For example, if the JSON string is:
{“firstname”:”dave”,”lastname”:”mckenney”,”position”:”instructor”}
The function should return a 2D list that looks like:
[ [“firstname”, “dave”], [“lastname”, “mckenney”], [“position”,“instructor”] ]
Each element in the returned list is a list with two elementscorresponding to a key and its matching value. Several JSON stringsand their corresponding lists are included
PayPal Gateway not configured
PayPal Gateway not configured