add type conversion to json decorator