Call toJSON on model.