Use rapidjson types deallocate memory