diff --git a/examples/conversions/api-response.toon b/examples/conversions/api-response.toon index 2c2e6ca..74a0374 100644 --- a/examples/conversions/api-response.toon +++ b/examples/conversions/api-response.toon @@ -1,9 +1,11 @@ -data.id: 42 -data.type: user -data.attributes.name: Ada Lovelace -data.attributes.email: ada@example.com -data.attributes.active: true -meta.request.id: req_abc123 -meta.request.timestamp: "2025-01-15T10:30:00Z" -meta.response.duration: 42 -meta.response.cached: false \ No newline at end of file +data: + id: 42 + type: user + attributes.name: Ada Lovelace + attributes.email: ada@example.com + attributes.active: true +meta: + request.id: req_abc123 + request.timestamp: "2025-01-15T10:30:00Z" + response.duration: 42 + response.cached: false \ No newline at end of file diff --git a/examples/conversions/config.toon b/examples/conversions/config.toon index 2aaef52..2ef9a0c 100644 --- a/examples/conversions/config.toon +++ b/examples/conversions/config.toon @@ -1,11 +1,12 @@ server.host: localhost server.port: 8080 server.timeout: 30000 -database.connection.host: db.example.com -database.connection.port: 5432 -database.connection.username: admin -database.connection.database: myapp_prod -database.pool.min: 2 -database.pool.max: 10 +database: + connection.host: db.example.com + connection.port: 5432 + connection.username: admin + connection.database: myapp_prod + pool.min: 2 + pool.max: 10 logging.level: info logging.format: json \ No newline at end of file diff --git a/examples/valid/key-folding-basic.toon b/examples/valid/key-folding-basic.toon index d82c57a..eaa4762 100644 --- a/examples/valid/key-folding-basic.toon +++ b/examples/valid/key-folding-basic.toon @@ -1,7 +1,8 @@ server.host: localhost server.port: 8080 -database.connection.host: db.example.com -database.connection.port: 5432 -database.connection.username: admin +database.connection: + host: db.example.com + port: 5432 + username: admin app.name: MyApp app.version: 1.0.0 \ No newline at end of file diff --git a/examples/valid/key-folding-mixed.toon b/examples/valid/key-folding-mixed.toon index 3b70185..5724774 100644 --- a/examples/valid/key-folding-mixed.toon +++ b/examples/valid/key-folding-mixed.toon @@ -6,4 +6,5 @@ server: ssl: enabled: true cert: /path/to/cert.pem -database.connection.url: "postgresql://localhost:5432/mydb" \ No newline at end of file +database.connection: + url: "postgresql://localhost:5432/mydb" \ No newline at end of file diff --git a/examples/valid/key-folding-with-array.toon b/examples/valid/key-folding-with-array.toon index 7407246..7503f9d 100644 --- a/examples/valid/key-folding-with-array.toon +++ b/examples/valid/key-folding-with-array.toon @@ -1,5 +1,6 @@ api.endpoint: "https://api.example.com" api.timeout: 5000 -data.meta.items[3]: widget,gadget,tool -data.meta.count: 3 +data.meta: + items[3]: widget,gadget,tool + count: 3 user.preferences.tags[2]: productivity,development \ No newline at end of file diff --git a/examples/valid/path-expansion-merge.toon b/examples/valid/path-expansion-merge.toon index fa3a8a2..3bf7ea2 100644 --- a/examples/valid/path-expansion-merge.toon +++ b/examples/valid/path-expansion-merge.toon @@ -1,5 +1,8 @@ -user.profile.name: Ada Lovelace -user.profile.email: ada@example.com -user.settings.theme: dark -user.settings.notifications: true +user: + profile: + name: Ada Lovelace + email: ada@example.com + settings: + theme: dark + notifications: true system.version: 1.5.0 \ No newline at end of file