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