diff --git a/src/test/14_serialize/main.cpp b/src/test/14_serialize/main.cpp index d444c47..8f2ce3f 100644 --- a/src/test/14_serialize/main.cpp +++ b/src/test/14_serialize/main.cpp @@ -129,6 +129,18 @@ class Dumper : public IListener { indent++; PrintIndent(); cout << "\"type\" : \"" << RTDCmptTraits::Instance().Nameof(cmpt->Type()) << "\""; + if (cmpt->Type().Is()) { + auto v = cmpt->As(); + cout << "," << endl; + PrintIndent(); + cout << "\"val\" : " << v->val; + } + else if (cmpt->Type().Is()) { + auto p = cmpt->As(); + cout << "," << endl; + PrintIndent(); + cout << "\"val\" : " << p->val; + } } virtual void ExistCmptPtr(const CmptPtr* cmpt) override {