ecere/sys/JSON: Fixed (de)serializing properties using base 'Container' class
authorJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 12:54:54 +0000 (08:54 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 12:54:54 +0000 (08:54 -0400)
ecere/src/sys/JSON.ec

index a813a81..036d683 100644 (file)
@@ -766,6 +766,18 @@ private:
                      }
                   }
                }
+               if(type && type.templateClass && type.templateClass == class(Container))
+               {
+                  char * br = strchr(type.fullName, '<');
+                  if(br)
+                  {
+                     char className[1024];
+                     strcpy(className, "Array");
+                     strcat(className, br);
+                     type = superFindClass(className, objectType.module);
+                  }
+               }
+
                // Find Member in Object Class
                {
                   DataValue value { };