diff options
Diffstat (limited to 'src/uscxml/Message.h')
-rw-r--r-- | src/uscxml/Message.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uscxml/Message.h b/src/uscxml/Message.h index 0f82947..dd62702 100644 --- a/src/uscxml/Message.h +++ b/src/uscxml/Message.h @@ -42,7 +42,7 @@ public: const Data operator[](const std::string& key) const { return operator[](key.c_str()); } - + const Data operator[](const char* key) const { if (hasKey(key)) return compound.at(key); @@ -63,6 +63,7 @@ public: } static Data fromJSON(const std::string& jsonString); + static std::string toJSON(const Data& data); static Data fromXML(const std::string& xmlString); Arabica::DOM::Document<std::string> toDocument(); std::string toXMLString() { |