noseglid/pjson — Issue #16: Simplify creating json objects
Author: noseglid
Created: 2011-11-02 19:47:33+00:00
State: open

When preparing an object for i.e. transmitting over the Internet, the following is common:
```
std::vector vct;
vct.push_back(std::string("Some string"));
vct.push_back(12);
vct.push_back(89.45);
vct.push_back(true);

Json::Value jv = Json::builder::create(vct);
std::string strjson = jv.strjson();
/* ... Send strjson */
```

However, the following is troublesome:
Creating a string must be done with std::string("string"), only "string" will not suffice (char*).
There is no way to create a a null value.