If I try it with the posted data the results here are
"fname": "xxxxxxx",
"name": "my text",
so that seems to be about right, it may very well be that that the json isn't formatted as you posted it. (sometimes JSON is just one very long line so no line breaks)
Depending on what you want to do and where you get the data you may be better off working with JSON directly (google json autohotkey and you'll find various scripts/libs)
You can also use TF_Find to just get the lines with "name" in them
Code: Select all
MsgBox % TF_Find(tf(f), , , "name", 0, 1) ; find all lines with "name" in them and return text