Encountered a bug with json cpp.

Supposedly, you can’‘t instantiate a Json::Value object as a static.

The stackoverflow question provides some background info.

And this patch from the official JsonCpp site fixes the issue.