1
1
# VBA-JSON
2
2
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/ ) ,
5
5
with additions and improvements made to resolve bugs and improve performance (as part of [ VBA-Web] ( https://github.com/VBA-tools/VBA-Web ) ).
6
6
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+.
8
8
9
9
- For Windows-only support, include a reference to "Microsoft Scripting Runtime"
10
10
- 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}
20
20
' Json("c")("d") -> 456
21
21
Json( "c" )( "e" ) = 789
22
22
23
- Debug.Print JsonConverter.ConvertToJson(Json)
23
+ Debug.Print JsonConverter.ConvertToJson(Json)
24
24
' -> "{""a"":123,""b"":[1,2,3,4],""c"":{""d"":456,""e"":789}}"
25
25
```
26
26
@@ -32,4 +32,8 @@ VBA-JSON includes a few options for customizing parsing/conversion if needed:
32
32
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.
33
33
By default, VBA-JSON will use ` String ` for numbers longer than 15 characters that contain only digits, use this option to use ` Double ` instead.
34
34
- __ 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