Return value to a variable

script
:local Time [ / system clock get time ]
:local result [/tool fetch url=“http://192.168.66.122/Get_mikrotik/index.php?message=$Time” as-value output=user];
:log info $result

result in log
data={“ok”:true,“result”:{}};downloaded=0;status=finished

I want to bring the value “ok”:true and status=finished to store in a variable abc how to access data?

Did you search the forum? http://forum.mikrotik.com/t/simple-querys-output-to-variable/168589/1

:local Time [/system clock get time]

:local result [/tool fetch url=(“http://192.168.66.122/Get_mikrotik/index.php?message=” . $Time) as-value output=user];
:local responseData ($result->“status”)
:log info $responseData
:if ($responseData != null) do={
:local responseD ($result->“data”)
:log info $responseD
} else= {
:log error “Response is not finished”
}

From the code above, I got what I wanted. But I’m stuck with the next problem is that I can’t write if else to check. Any suggestions or good ways to check the result? For example, if the GET variable sent is invalid, there will be an error, but the status of sending will be successful. If the IP address is invalid, there will be no status.