[cpp-pistache]Add support for map (#1359)

* Add support for map
* Add support for nested maps
* Simplify Array and Map Helper
* Use const reference wherever possible
This commit is contained in:
sunn
2018-11-03 14:09:31 +01:00
committed by GitHub
parent 36991a4e14
commit f8f3a08282
21 changed files with 246 additions and 243 deletions

View File

@@ -77,7 +77,7 @@ nlohmann::json Order::toJson() const
return val;
}
void Order::fromJson(nlohmann::json& val)
void Order::fromJson(const nlohmann::json& val)
{
if(val.find("id") != val.end())
{