Temperature alert

In the telegram message code there are lines:

response = mybolt.analogRead(pin)
data = json.loads(response)
if data["success"] != 1:
            print("Request not successfull")
            print("This is the response->", data)
            return -999

It says it checks for the valid response. But how?
What is the value of success?
Like what does data[“success”] do?
Data is the temperature right? So how is it 1?

value of success is either 1 or 0
if the execution of code succeeds then the value returned will be 1 and if the execution of code fails then it will return 0.
This is response returned on executing my device_status.py
{“value”: “offline”, “time”: null, “success”: 1}
Here the value of success is “1” since the code executed successfully despite the device being “offline”