oerliJSON flatten
Arrays use numeric path segments; unflatten groups them into arrays.
JSON
Result
{
  "a.b": 1,
  "c.0": 2,
  "c.1.d": 3
}