Skip to content

Commit 31cfabc

Browse files
committed
fix missing comma between array elements
1 parent 758e813 commit 31cfabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Ellabit/DynamicCode/SimpleUnloadableAssemblyLoadContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public SimpleUnloadableAssemblyLoadContext(HttpClient httpClient)
3535
Console.WriteLine($"60x50: {json.Substring(60, 50)}");
3636
if (!json.StartsWith("["))
3737
{
38-
json = "[" + json + "]";
38+
json = "[" + json.Replace("}", "},").TrimEnd(',') + "]"; //Add missing , between each array element, but for last one remove last comma
3939
}
4040
Console.WriteLine($"CONTENTS: {json}");
4141

0 commit comments

Comments
 (0)