switch from simple string array to json array