human
Give me a Python function to turn a json into a list.
assistant
Here is a Python function to turn a json into a list

import json

def json_to_list(json_string):
    """
    Turn a json into list.
    """
    return json.loads(json_string)

# Enter the json string
json_string = "{\"a\": 1, \"b\": 2}"

# Calling the function
list_of_json = json_to_list(json_string)

# Printing the list
print(list_of_json)

#Example Output
# {'a': 1, 'b': 2}

#Remember to inspect code for bugs.