sets the values as json