Skip to content

Commit e62d361

Browse files
committed
v2.2.0
1 parent 434c6cd commit e62d361

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

JsonConverter.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Attribute VB_Name = "JsonConverter"
22
''
3-
' VBA-JSON v2.1.0
3+
' VBA-JSON v2.2.0
44
' (c) Tim Hall - https://github.com/VBA-tools/VBA-JSON
55
'
66
' JSON Converter for VBA

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,22 @@ Set Json = JsonConverter.ParseJson("{""a"":123,""b"":[1,2,3,4],""c"":{""d"":456}
2121
Json("c")("e") = 789
2222

2323
Debug.Print JsonConverter.ConvertToJson(Json)
24-
' -> "{""a"":123,""b"":[1,2,3,4],""c"":{""d"":456,""e"":789}}"
24+
' -> "{"a":123,"b":[1,2,3,4],"c":{"d":456,"e":789}}"
25+
26+
Debug.Print JsonConverter.ConvertToJson(Json, Whitespace:=2)
27+
' -> "{
28+
' "a": 123,
29+
' "b": [
30+
' 1,
31+
' 2,
32+
' 3,
33+
' 4
34+
' ],
35+
' "c": {
36+
' "d": 456,
37+
' "e": 789
38+
' }
39+
' }"
2540
```
2641

2742
```vb

specs/VBA-JSON - Specs.xlsm

9.74 KB
Binary file not shown.

0 commit comments

Comments
 (0)