Hi Team, I need to verify response based on the certain conditions. Yes I can verify through if/else or switch statement but there is any other way to verify such responses.
Response:
“rank”: {
“id”: 110,
“description”: “Director”
}
Now here we have 50 ids and based on that different description since if/else and switch statement making code more lengthy, Any other solution?
Let me know if need more info.