i feel so stupid.
I got this String:
var myString = "({"week":{"@attributes": "Some stuff"}});";
No i parse it to JSON:
var myobject = JSON.parse(myString);
and then i’m trying to access it via:
myobject.week or myobject["week"]
either way isn’t working. What am I doing wrong?
That is not a valid json string. You must remove the () and ;