This test code is intended to go in a HTML document on your PC, not involving the Arduino at all.
You should see a message dialog showing you the value of json and json.name. Do you see both of them? Does json.name show the correct value "fio1"?
Hi PeterH,
... Yes,sorry, my english it is no so good, well I pasted the code example I used it on my PC and it worked. But, my question was about the arduino... As you see I deleted the open(get... etc, status, ... and I simply write the json strutcture. It worked, an alert window appeared saying "object Object" and filling the gaps, name: fio1, temperature: 32 etc. That means that the example worked, the example I pasted on the post. So, with that, I added the status, get, etc... but the alert window shows nothing and the gaps are filled with "undefined" but if I use the json structure { name: fio1, temperature: 34...} If I use {name: fio1, variables: { temperature: "32", humidity: "86"... etc}} it says something as unable to get temperature ...
sorry for my english
thanks