changed data type str to json