X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ecere%2Fsrc%2Fsys%2FJSON.ec;h=4e9052be510578f1c857179ecab148c81f1fe602;hb=f5dd427b0d05557788a206b858ef7357cec98d35;hp=8310d1ea5218c9cb82d518eda7cd1e367db11c9d;hpb=e61aa66f20117fdc3df44d54b35d655d6fc433cf;p=sdk diff --git a/ecere/src/sys/JSON.ec b/ecere/src/sys/JSON.ec index 8310d1e..4e9052b 100644 --- a/ecere/src/sys/JSON.ec +++ b/ecere/src/sys/JSON.ec @@ -1487,7 +1487,7 @@ static bool WriteONObject(File f, Class objectType, void * object, int indent, b } else { - Class _class = eCON ? ((Instance)object)._class : objectType; + Class _class = (eCON && objectType.type == normalClass) ? ((Instance)object)._class : objectType; Property prop; int c; bool isFirst = true;