Added JSON change method, which accepts a diff / sync JSON array, and applies the changes to a timeline and timeline associated properties and items. Also fixed many bugs on JSON type checking.

This commit is contained in:
Jonathan Thomas
2014-01-08 01:43:58 -06:00
parent 16479fba9d
commit 3c99e53dad
21 changed files with 395 additions and 118 deletions

View File

@@ -171,7 +171,7 @@ void ImageReader::SetJsonValue(Json::Value root) throw(InvalidFile) {
ReaderBase::SetJsonValue(root);
// Set data from Json (if key is found)
if (root["path"] != Json::nullValue)
if (!root["path"].isNull())
path = root["path"].asString();
// Re-Open path, and re-init everything (if needed)