JSON feed error

Use this forum to discuss issues related to the SD-JSON service.
Post Reply
SteelyJim
Posts: 2
Joined: Thu Aug 15, 2019 9:57 am

JSON feed error

Post 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.

JLM
Post Reply