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