in src/vswhere.lib/JsonScope.cpp [24:55]
void JsonScope::WriteStartImpl()
{
bool writeKey = false;
WriteSeparator();
if (Parent())
{
if (Parent()->IsObject())
{
writeKey = true;
}
// Write new line if not the root scope.
Console().WriteLine();
}
if (writeKey && Name().length())
{
Console().Write(
L"%ls%ls\"%ls\"%ls: %lc",
Padding().c_str(),
Console().Color(JsonFormatter::ColorName),
Name().c_str(),
Console().ResetColor(),
StartChar());
}
else
{
Console().Write(L"%ls%lc", Padding().c_str(), StartChar());
}
}