convert model.items to json