switched to json rappresentation of data