adding document to value conversion for rapidjson