How unflattening works in RC9
mainRC9 uses the flat package to automatically flatten and unflatten objects when reading and writing. This allows you to use dot notation in your config files to represent nested objects.
Examples:
hello.world = truebecomes{ hello: { world: true } }test.0 = Abecomes{ test: ['A'] }(using array indices)test[]=ApushesAto thetestarray.
Disabling unflattening:
If you have keys that might conflict (e.g., x= and x.y=), you can disable this behavior by passing { flat: true } in the RCOptions object.
// To disable unflattening:
read({ flat: true });