A Python script to nest dot-separated keys in JSON files. Useful for converting flat key structures (like "foo.bar.baz": "value"
) into nested dictionaries ({"foo": {"bar": {"baz": "value"}}}
).
- Without a prefix: Nests all dot-separated keys in one or more JSON files.
- With a prefix: Only nests keys that start with the given prefix, leaving the rest untouched.