I get JSON from some endpoint and I only know it will contain array called 'x', which can contain everything (another arrays, JSON properties etc.).

Now, I want to retrieve values from all keys and concatenate it into one string.

I found this [solution](https://stackoverflow.com/questions/40632398/how-do-i-get-all-the-fields-using-json-net) but when it encounters arrays of properties it gives me as it is, like this:

```
"test": {
      "test1": "tea",
      "test2": "tt",
      "foo": "",
      "bar": "48f7c3284ca0",
      "random": "Harry",
      "anything": "Potter"
    },

```

And I would like to retrieve from above just values and concatenate them into string like so:

"tea tt 48f7c3284ca0 Harry Potter".

In other words - I want to *foreach* every key from **generic** JSON and, if it doesn't have child, get it's value and keep *foreaching*.