Skip to content

combit/v_JSON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v_JSON

A JSON parser for VBScript.

Use the main_template like so:

Dim json
Set json = New v_JSON

json.FromString "{""key1"": null, ""key2"": { ""key3"": ""val3"" }, " & _
                """key4"": ""val4"", ""key5"": true, ""key6"": 7.8, " & _
                """employees"":[ { ""firstName"":""John"", ""lastName""" & _
                ":""Doe"" }, { ""firstName"":""Anna"", ""lastName"":" & _
                """Smith"" }, { ""firstName"":""Peter"", ""lastName"":" & _
                """Jones"" } ] }"
                
WScript.Echo json.Item("employees")(2).Item("firstName")

This will produce the following output in the console or MsgBox:

Peter

About

A JSON parser for VBScript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • VBScript 100.0%