diff VamPipePluginLibrary.cpp @ 2:4d6e60a7c80e

Some JSON fixes and a quick test program
author Chris Cannam
date Tue, 23 Aug 2016 12:04:49 +0100
parents 7cfe736fd974
children 6a792d8838c9
line wrap: on
line diff
--- a/VamPipePluginLibrary.cpp	Tue Aug 23 11:17:01 2016 +0100
+++ b/VamPipePluginLibrary.cpp	Tue Aug 23 12:04:49 2016 +0100
@@ -58,7 +58,7 @@
     if (!j["type"].is_string()) {
 	throw VampJson::Failure("string expected for type field");
     }
-    if (!j["content"].is_object()) {
+    if (!j["content"].is_null() && !j["content"].is_object()) {
 	throw VampJson::Failure("object expected for content field");
     }
     return j;