I have a list of dicts in the following form that I generate from pandas. I want to convert it to a json format.
list_val = [{1.0: 685}, {2.0: 8}] output = j
You could also convert the array to a python list (use the tolist method) and then convert the list to json.
tolist