jackqiu's implementation for jsoncpp