Skip to content

Commit d30f3fa

Browse files
committed
Remove more spaces from the JSON
1 parent 76b123c commit d30f3fa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Tools/dotnet-counters/Exporters/JSONExporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public void Initialize()
3636
}
3737

3838
builder = new StringBuilder();
39-
builder.Append($"{{ \"Target Process\": \"{_processName}\", ");
40-
builder.Append($"\"Start Time\": \"{DateTime.Now.ToString()}\", ");
39+
builder.Append($"{{ \"TargetProcess\": \"{_processName}\", ");
40+
builder.Append($"\"StartTime\": \"{DateTime.Now.ToString()}\", ");
4141
builder.Append($"\"Events\": [");
4242
}
4343

src/tests/dotnet-counters/JSONExporterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class JSONCounterPayload
118118
[JsonProperty("name")]
119119
public string name { get; set; }
120120

121-
[JsonProperty("counter type")]
121+
[JsonProperty("counterType")]
122122
public string counterType { get; set; }
123123

124124
[JsonProperty("value")]
@@ -127,10 +127,10 @@ class JSONCounterPayload
127127

128128
class JSONCounterTrace
129129
{
130-
[JsonProperty("Target Process")]
130+
[JsonProperty("TargetProcess")]
131131
public string targetProcess { get; set; }
132132

133-
[JsonProperty("Start Time")]
133+
[JsonProperty("StartTime")]
134134
public string startTime { get; set; }
135135

136136
[JsonProperty("Events")]

0 commit comments

Comments
 (0)