I have a JSON file with data in a structure like that:
{
    "first": {
        "second": "example",
        "third": {
            "fourth": "example2",
            "fifth": "example3"
        }
    }
}
Is there a way to convert it to a flat structure to get only name-value pairs with a string value? From this JSON i want to get something like this:
{
"second": "example",
"fourth": "example2",
"fifth": "example3"
}
 
     
     
    