| Index: webrtc/stats/rtcstatsreport.cc
|
| diff --git a/webrtc/stats/rtcstatsreport.cc b/webrtc/stats/rtcstatsreport.cc
|
| index 566aef8772de09d18103123d8a9a17082e523bac..322d5369a75022004e2919268d79ee66649ace46 100644
|
| --- a/webrtc/stats/rtcstatsreport.cc
|
| +++ b/webrtc/stats/rtcstatsreport.cc
|
| @@ -103,14 +103,15 @@ RTCStatsReport::ConstIterator RTCStatsReport::end() const {
|
| stats_.cend());
|
| }
|
|
|
| -std::string RTCStatsReport::ToString() const {
|
| +std::string RTCStatsReport::ToJson() const {
|
| std::ostringstream oss;
|
| ConstIterator it = begin();
|
| if (it != end()) {
|
| - oss << it->ToString();
|
| + oss << '[' << it->ToJson();
|
| for (++it; it != end(); ++it) {
|
| - oss << '\n' << it->ToString();
|
| + oss << "," << it->ToJson();
|
| }
|
| + oss << ']';
|
| }
|
| return oss.str();
|
| }
|
|
|