Page 1 of 1

JSON feed error

Posted: Fri Dec 04, 2020 9:57 am
by SteelyJim
A project I am working on has been retrieving SD data for over a year flawlessly. Now, twice in the past two weeks the code has crashed because of unexpected nulls in the data. The latest was last night:

Code: Select all

public class tScheduleResponseElement
        public int stationID { get; set; }
        public List<tProgram> programs { get; set; }
        public tScheduleMetadata metadata { get; set; }

List<tScheduleResponseElement> programList = JsonConvert.DeserializeObject<List<tScheduleResponseElement>>(fContent);
programlist was unexpectedly null.

Station id 43312 4:09am MST.
7 Days data requested
I'm using Newtonsoft.json to deserialize.

I'm not sure if this is a bug or by design.
Redownloading later worked as expected.