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