Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VBScript] Json: get VALUE by NAME
#1
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT RESTFUL API. Please pass json issue kul20 0 2,289 08-06-2018, 07:16 PM
Last Post: kul20
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,878 07-19-2017, 04:58 PM
Last Post: smiley
  [UFT][JSON] Validate Json file robertosalemi 0 3,770 02-10-2016, 04:36 PM
Last Post: robertosalemi
  Does QTP support JSON data streams? jfallot 1 7,547 08-22-2008, 11:37 AM
Last Post: siri

Forum Jump:


Users browsing this thread: 1 Guest(s)