Good evening,
I have this JSON string returned from Microsoft Automate and I'd like to turn the results into columns. The sample return string looks like this:
{"__metadata":{"id":"123","uri":"api/Items(1)","etag":"\"1\"","type":"SP.Data.SP.Items"},"Title":"TitleVal","Column1":"Column1Val","SomeOtherCol":"SomeOtherColVal","UserID":"1697"}
I know I only want the string just after the first "}" and so I generate this code:
Last(FirstN(Split(sampleString.Text, "}"), 2)).Result
From here, what is the best method to converting the result from this:

into a collection with this:
| Title | Column1 | SomeOtherCol | UserID |
| TitleVal | Column1Val | SomeOtherColVal | 1697 |
The logic that I think may work is to to not even do a split yet and conduct a find for each field and then split after to find the values for it. I'm just bouncing ideas here and see if I'm working in the right direction.
EDIT: I got this and it's giving me the correct results but I'm kinda hardcoding the number of spaces to retrieve. There's got to be a better / dynamic way.
Substitute(First(Split(Mid(sampleString.Text, Find("SomeOtherCol", sampleString.Text) + 13 +1), ",")).Result, Char(34), Blank())
EDIT #2: I think I am going to settle with this logic:
Substitute(Last(Split(First(Split(Mid(sampleString.Text,Find("Title",sampleString.Text)),",")).Result,":")).Result, Char(34), Blank())