Currently, I am dealing with a JSON value in the following format:
{
"T1" : "online",
"T2" : "offline"
}
Additionally, I have an online API which only sends me the following response:
{
StatusCode :"T1"
}
My task is to extract the code from the API response, then compare it with the local JSON file. Finally, display the corresponding value in an input field (not a drop-down menu).