11# VBA-JSON
22
3- JSON conversion and parsing for VBA (Windows and Mac Excel, Access, and other Office applications).
4- It grew out of the excellent project [ vba-json] ( https://code.google.com/p/vba-json/ ) ,
3+ JSON conversion and parsing for VBA (Windows and Mac Excel, Access, and other Office applications).
4+ It grew out of the excellent project [ vba-json] ( https://code.google.com/p/vba-json/ ) ,
55with additions and improvements made to resolve bugs and improve performance (as part of [ VBA-Web] ( https://github.com/VBA-tools/VBA-Web ) ).
66
7- Tested in Windows Excel 2013 and Excel for Mac 2011, but should apply to 2007+.
7+ Tested in Windows Excel 2013 and Excel for Mac 2011, but should apply to 2007+.
88
99- For Windows-only support, include a reference to "Microsoft Scripting Runtime"
1010- For Mac and Windows support, include [ VBA-Dictionary] ( https://github.com/VBA-tools/VBA-Dictionary ) .
@@ -20,7 +20,7 @@ Set Json = JsonConverter.ParseJSON("{""a"":123,""b"":[1,2,3,4],""c"":{""d"":456}
2020' Json("c")("d") -> 456
2121Json( "c" )( "e" ) = 789
2222
23- Debug.Print JsonConverter.ConvertToJson(Json)
23+ Debug.Print JsonConverter.ConvertToJson(Json)
2424' -> "{""a"":123,""b"":[1,2,3,4],""c"":{""d"":456,""e"":789}}"
2525```
2626
@@ -32,4 +32,8 @@ VBA-JSON includes a few options for customizing parsing/conversion if needed:
3232 This can lead to issues when BIGINT's are used (e.g. for Ids or Credit Cards), as they will be invalid above 15 digits.
3333 By default, VBA-JSON will use ` String ` for numbers longer than 15 characters that contain only digits, use this option to use ` Double ` instead.
3434- __ AllowUnquotedKeys__ (Default = ` False ` ) The JSON standard requires object keys to be quoted (` " ` or ` ' ` ), use this option to allow unquoted keys.
35- - __ EscapeSolidus__ (Default = ` False ` ) The solidus (/) is not required to be escaped, use this option to escape them as ` \/ ` in ` ConvertToJson ` .
35+ - __ EscapeSolidus__ (Default = ` False ` ) The solidus (` / ` ) is not required to be escaped, use this option to escape them as ` \/ ` in ` ConvertToJson ` .
36+
37+ ``` VB.net
38+ JsonConverter.JsonOptions.EscapeSolidus = True
39+ ```
0 commit comments