encapsulate jsoncpp operations