adjust model to json