After combining the JSON results I was able to use the findrx function to get pretty close.
Even though I could work with this result in my target app, I would like to refine (clean perfectly) the result in to somthing like so:
Or construct a JSON like output, because my target app will work well with that. Thanks for any help
s1 = F"{{''playlist'': {json1}, ''status'': {json2}}"
str pat1 rx1 sub1 pat2 rx2 sub2
pat1 = "''time'':\d+"
rx1 = findrx(s1 pat1 0 1 sub1)
pat2 = "''uri''\s*:\s*''([^'']+)''[^}]*?''current''\s*:\s*''current''"
rx2 = findrx(s1 pat2 0 1 sub2)
out rx1
out sub1
out sub2Or construct a JSON like output, because my target app will work well with that. Thanks for any help
