Added handy converter functions to JSON.
This commit is contained in:
parent
a36ce260ac
commit
5562bea8a0
2 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue