@russd, got it running local accessing your ip for the data. Began the separation of concerns work... and at the same time grow the inner workings of the DepartureBoard.js... a bit a challenge since it is all global function calling... said that, I could must put all JS code into one single file and it would still work... ;-).
Question: what is the particular reason to use a JS written JSON parser and not the native JSON object as provided by the JS environment?
I use the the JSON.parse() with a responseText of yours, and it works just fine...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@russd, got it running local accessing your ip for the data. Began the separation of concerns work... and at the same time grow the inner workings of the DepartureBoard.js... a bit a challenge since it is all global function calling... said that, I could must put all JS code into one single file and it would still work... ;-).
Question: what is the particular reason to use a JS written JSON parser and not the native JSON object as provided by the JS environment?
I use the the JSON.parse() with a responseText of yours, and it works just fine...
1 Attachment