Update to only encode new data to json and keep the encoded objects as a list of strings.