Added handy converter functions to JSON.

This commit is contained in:
Thulinma 2012-07-20 17:48:57 +02:00
parent a36ce260ac
commit 5562bea8a0
2 changed files with 17 additions and 0 deletions

View file

@ -51,6 +51,9 @@ namespace JSON{
operator long long int();
operator std::string();
operator bool();
const std::string asString();
const long long int asInt();
const bool asBool();
//array operator for maps and arrays
Value & operator[](const std::string i);
Value & operator[](const char * i);