Migrating json parsing from rapidjson to jsoncons. (#112)

* Migrating JSON parsing from RapidJSNO library to jsoncons library

* updating readme file and removing RapidJSON headers
This commit is contained in:
Savinda Senevirathne
2020-08-31 14:05:42 +05:30
committed by GitHub
parent 648b70892c
commit 2fc93d4291
10 changed files with 520 additions and 619 deletions

View File

@@ -187,16 +187,6 @@ namespace util
return 0;
}
/**
* Returns a std::string_view pointing to the rapidjson Value which is assumed
* to be a string. We use this function because rapidjson does not have built-in string_view
* support. Passing a non-string 'v' is not supported.
*/
std::string_view getsv(const rapidjson::Value &v)
{
return std::string_view(v.GetString(), v.GetStringLength());
}
// Provide a safe std::string overload for realpath
std::string realpath(std::string path)
{