how to convert string to json array in python