FracturedJson Versions Save

FracturedJson is utility that formats JSON data producing highly readable but fairly compact output.

v4.0.0

2 months ago

Features

Replaced setting DontJustifyNumbers with a new enum, NumberListAlignment, to control how arrays or table columns of numbers are handled.

  • Normalize is the default and it behaves like previous versions when DontJustifyNumbers==false. With it, number lists or columns are rewritten with the same number of digits after the decimal place.
  • Decimal lines the numbers up according to their decimal points, preserving the number exactly as it appeared in the input document. For regular numbers this usually looks like Normalize, except with spaces padding out the extra decimal places instead of zeros.
  • Left lines up the values on the left, preserving the exactly values from the input document.
  • Right lines up the values on the right, preserving the exactly values from the input document.

Added

New setting, NumberListAlignment.

Removed

Removed setting DontJustifyNumbers.

v3.0.0

1 year ago

3.0.0

Features

  • Support for comments (sometimes called JSON-with-comments or .jsonc). Where possible, comments stay stuck to the elements that they're closest to in the input.
  • Deep table formatting. In version 2, only the immediate children of table rows were lined up. Now, if space permits and the types are consistent, all descendents are aligned as table columns.
  • New length limit option: MaxTotalLineLength.
  • Option to preserve blank lines.
  • Option to allow trailing commas.

Added

  • New settings: MaxTotalLineLength, MaxTableRowComplexity, MinCompactArrayRowItems, CommentPolicy, PreserveBlankLines, AllowTrailingCommas.

Removed

  • Removed settings: TableObjectMinimumSimilarity, TableArrayMinimumSimilarity, AlignExpandedPropertyNames, JsonSerializerOptions.
  • Support for East Asian Full-width characters is no longer built-in. I did this to eliminate coupling with any specific library. You can easily recreate the functionality by providing your own StringLengthFunc. (See the EastAsianWideCharactersTests test class for an example.)

v2.0.0

2 years ago

New features including tabular formatting. See CHANGELOG.md for details.

v1.2.0_FracturedJsonCli

3 years ago
  • Added AlwaysExpandDepth option (-e or --expand=VALUE)
  • Added JustifyNumberLists option (-j or --justify)

v1.0.3_FracturedJsonCli

3 years ago
  • Provided better error messages when the input document is too large.
  • Created OS-specific builds

v1.0.1_FracturedJson

3 years ago
  • Fixed an off-by-one error with the MaxCompactArrayComplexity property.

v1.0.1_FracturedJsonCli

3 years ago
  • Fixed an off-by-one error with the MaxCompactArrayComplexity property.

v1.0.0_FracturedJsonCli

3 years ago

Initial Release

v1.0.0_FracturedJson

3 years ago

Initial release