adding JSON convertion to the data