convert json object with spaces
Hi!
I have some JSON to deal with.
The given structure i have is like this.
...
"days": [
{
"date": "2017-01-01",
"weekday": "Sunday",
"workfree day": "Yes",
},
...
What I try to do is to use jQuery and Ajax to get an output of some of the values onto a web page.It works fine with for example:
var test1 = data.dagar[dayNr].date; (works fine)
But..
One of the nodes have a blankspace: workfree day" - I haven't figured out how to solve that in my output..
var test2 = data.dagar[dayNr].workfree day; (don't work)
Any ideas?
/ Thanks in advance