Convert arrays to json strings.