Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

how to save a json file in my folder.

Hi Everyone,

i need some help how can i save this jsonfile to my folder where i have my code.

this is the path C:\Users\robin\Downloads\xampp\htdocs\bob

my code

       // Load initial values from JSON 'file'
    jsonfile = '[{"lane 1":"1","lane 2":"1","lane 3":"5","lane 4":"2"}]';
    var initialstate = JSON.parse(jsonfile);
    setLaneState("lane1",initialstate[0]['lane 1'])
    setLaneState("lane2",initialstate[0]['lane 2'])...
Code (JavaScript):
how to save a json file in my folder.

from JavaScript https://ift.tt/2WMi1ok
via IFTTT

Post a Comment

0 Comments