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