MarcosLopezC / LightJson

A simple JSON library for C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pretty-printed arrays not indented correctly

sharwell opened this issue · comments

var obj = JsonValue.Parse("[1,2]");
var writer = new JsonWriter(pretty: true) { IndentString = "  " };
writer.Serialize(obj);

Expected:

[
  1,
  2
]

Actual:

[
1  ,
2
]

🔗 Originally found in DotNetAnalyzers/StyleCopAnalyzers#2406.

This is a duplicate of #25.

This issue was already fixed in commit d866746.