It’s not valid JSON the way it’s written above. Your quotes are special characters. If I replace them with standard quotes ("), then it is valid JSON. That may not be why you’re having problems but it did prevent me from understanding the issue at first.
Once I replaced the quotes, the parsing blocks you used above worked properly (e.g. [1].Machinename returned “CNC”).
Are you checking the green error block value to make sure you’re not getting an error?
The Discord forum app is the one replacing normal quotes with special quotes. Authors need to include quoted strings in </> (back ticks) to prevent the forum app from replacing them.
Are you testing this on a mobile device? If so, are you able to ping https://192.168.X.X:44XXX from that device? I wonder if your device can’t reach the server.
@tatiang@muneer
the value in JSON need to change all the time, if I want to change it in variables, I need to make it happen in person.
Is there any solution to get the data by using WebAPI block(the purple one)?
@tatiang Yes, It’s a app for mobile. My mobile can get the server. It takes me lots of time to fix it and it works now. I can open the JSON by google chrome.
Can you elaborate?
Give an example of what you mean. Do you mean the keys (“id”, “Machinename”,…) keep changing? Or do you mean you might have a list of more than one item?
I use C# to get the CNC’s data. The number in my JSON like “RPM,X,Y,Z” will change with the operating machine.
I haven’t finish this part but I think the Web_API may work. This is why I need the Web_API/Get/response to do it.
I think the main problem is that “my Web_API’s response/status/error all are null now”.
When you click preview button or Live Test menu option, Thunkable web page opens a Modal page which is, most probably, an iFrame or an AJAX xmlHTTP component which will try to connect to your local server from the Thunkable server and therefore it fails.
Your only option is to test using the Thunkable Live App in your phone which will use your phone’s connection to reach your server.
@muneer@tatiang
Thanks for your helping me! You guys are so kind that I feel so grateful to you.
l’ve already solve this problem. It takes me to much time to understand and fix it.