PDA

View Full Version : [VBScript] Json: catturare un Value dato il suo Nome


robertino_salemi
25-02-2016, 15:45
Buonasera a tutti,
ho un Json del tipo:

[{
"SysName": "mySysName1",
"SysLink": "mySysLink1"
}, {
"SysName": "mySysName2",
"SysLink": "mySysLink2"
}, {
"SysName": "mySysName2",
"SysLink": "mySysLink2"
}]


Vorrei prendere tutti i value di SysName, stavo provando con un ReGex ma non trovo la sintassi corretta:

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


Grazie.