I'm having a lot of trouble deserializing a nested Json on the server-side.
I have a portion of a script like this;
var titleData = server.GetTitleInternalData({"Keys" : loc}) var campaignData = {}; if (titleData.Data.hasOwnProperty(loc)){ campaignData = titleData.Data[loc]; } log.info(campaignData+" "+campaignData[window]+" "+campaignData.hasOwnProperty(window));
(loc is the internal data key - currently "hearts_oldlibrary" in my test)
the result I get from that log.info statement is this;
{"oldlibrary":1} undefined false
I'm expecting campaignData[window] to return 1, not undefined. (Window is being passed in args and is "oldlibrary".
I hope you can answer quickly - I need this app submitted and approved by the 13th but something that should be straightforward isn't being straightforward. D: