Log* log = Log::getInstance();
log->log("JSONServer", Log::DEBUG, "reclist");
- Json::Value jsrecordings;
+ Json::Value jsrecordings(Json::arrayValue);
cRecordings Recordings;
Recordings.Load();
for (cRecording *recording = Recordings.First(); recording; recording = Recordings.Next(recording))
Log* log = Log::getInstance();
log->log("JSONServer", Log::DEBUG, "channellist");
- Json::Value jschannels;
+ Json::Value jschannels(Json::arrayValue);
// int type;
for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel))
return true;
}
- Json::Value jsevents;
+ Json::Value jsevents(Json::arrayValue);
for (const cEvent* event = Schedule->Events()->First(); event; event = Schedule->Events()->Next(event))
{
Log* log = Log::getInstance();
log->log("JSONServer", Log::DEBUG, "timerlist");
- Json::Value jstimers;
+ Json::Value jstimers(Json::arrayValue);
cTimer *timer;
int numTimers = Timers.Count();