changed datatype to json