";
for (auto i = val.begin(); i != val.end();)
{
out += """;
dumpEscaped(out, i.key());
out += "": ";
bool inATag = false;
if (i.key() == "@odata.id" || i.key() == "@odata.context" ||
i.key() == "Members@odata.nextLink" || i.key() == "Uri")
{
inATag = true;
out += "
";
}
dump(out, i.value());
if (inATag)
{
out += "";
}
i++;
if (i != val.end())
{
out += ",";
}
out += "
";
}
out += "
";
out += '}';
return;
}
case nlohmann::json::value_t::array:
{
if (val.empty())
{
out += "[]";
return;
}
out += "[";
out += "";
// first n-1 elements
for (auto i = val.cbegin(); i != val.cend() - 1; ++i)
{
dump(out, *i);
out += ",
";
}
// last element
dump(out, val.back());
out += "
";
out += ']';
return;
}
case nlohmann::json::value_t::string:
{
out += '\"';
const std::string* ptr = val.get_ptr