Convert nested JSON to flat dot notation, or unflatten back to nested structure.
JSON flattening converts nested objects into a flat structure using dot notation. For example, {"user": {"name": "John"}} becomes {"user.name": "John"}.
{
"user": {
"name": "John",
"address": {
"city": "NYC"
}
}
}
{
"user.name": "John",
"user.address.city": "NYC"
}