--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: json/range/inside-array.json --- # Input ```json { a: [ 1, 2, 3,4,5,6, 7, 8 ], b: [1, 2, 3, 4] } ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,4 +1,8 @@ { - "a": [1, 2, 3, 4, 5, 6, 7, 8], - "b": [1, 2, 3, 4] +a: [ +1, + 2, 3, 4, 5, 6, 7, +8 +], +b: [1, 2, 3, 4] } ``` # Output ```json { a: [ 1, 2, 3, 4, 5, 6, 7, 8 ], b: [1, 2, 3, 4] } ``` # Errors ``` inside-array.json:2:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Property key must be double quoted 1 │ { > 2 │ a: [ │ ^ 3 │ 1, 4 │ 2, 3,4,5,6, 7, inside-array.json:7:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Property key must be double quoted 5 │ 8 6 │ ], > 7 │ b: [1, 2, 3, 4] │ ^ 8 │ } 9 │ ```