Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

[VBScript] Json: get VALUE by NAME

$
0
0
Hi,
I have this Json
Code:
[{
    "SysName": "mySysName1",
    "SysLink": "mySysLink1"
}, {
    "SysName": "mySysName2",
    "SysLink": "mySysLink2"
}, {
    "SysName": "mySysName2",
    "SysLink": "mySysLink2"
}]

How can I get all value of "SysName" node/name?
How can I use ReGex?

This not works:
Code:
Set re = New RegExp


    re.Pattern = "/SysName(.*)/"
    re.Global = True
    re.IgnoreCase = True


For Each m In re.Execute(myJson)


    Wscript.echo m.value


Next

Thanks.

Viewing all articles
Browse latest Browse all 1653

Trending Articles