how would I parse this Json String?
'{ ' "territory": { ' "RSC": { ' "sector": 1, ' "size": 3, ' "density": 2, ' "slots": 18, ' "daily_respect": 113, ' "faction": 13784, ' "coordinate_x": "3199.2", ' "coordinate_y": "2828.32", ' }, ' "HSC": { ' "sector": 1, ' "size": 4, ' "density": 3, ' "slots": 26, ' "daily_respect": 197, ' "faction": 13784, ' "coordinate_x": "3457.41", ' "coordinate_y": "2785.98", ' }, ' "JSC": { ' "sector": 1, ' "size": 2, ' "density": 3, ' "slots": 8, ' "daily_respect": 141, ' "faction": 13784, ' "coordinate_x": "3479.67", ' "coordinate_y": "2819.67", ' }, ' "NTC": { ' "sector": 1, ' "size": 3, ' "density": 2, ' "slots": 21, ' "daily_respect": 113, ' "faction": 13784, ' "coordinate_x": "3416.45", ' "coordinate_y": "2868.95", ' }, ' "OTC": { ' "sector": 1, ' "size": 4, ' "density": 3, ' "slots": 24, ' "daily_respect": 197, ' "faction": 13784, ' "coordinate_x": "3417.68", ' "coordinate_y": "2904.79", ' }, ' "QTC": { ' "sector": 1, ' "size": 3, ' "density": 2, ' "slots": 12, ' "daily_respect": 113, ' "faction": 13784, ' "coordinate_x": "3395.34", ' "coordinate_y": "3039.22", ' }, ' "RTC": { ' "sector": 1, ' "size": 3, ' "density": 2, ' "slots": 16, ' "daily_respect": 113, ' "faction": 13784, ' "coordinate_x": "3366.33", ' "coordinate_y": "3012.11", ' }, ' "TTC": { ' "sector": 1, ' "size": 4, ' "density": 3, ' "slots": 28, ' "daily_respect": 197, ' "faction": 13784, ' "coordinate_x": "3244.33", ' "coordinate_y": "2799.8", ' }, ' "UTC": { ' "sector": 1, ' "size": 3, ' "density": 2, ' "slots": 12, ' "daily_respect": 113, ' "faction": 13784, ' "coordinate_x": "3278.81", ' "coordinate_y": "2756.83", ' "racket": { ' "name": "Truck Stop II", ' "level": 2, ' "reward": "20x Can of Munster daily", ' "created": 1604663824, ' "changed": 1645588625, ' }, ' },
Dim response As Object
Set response = JsonConverter.ParseJson(request.responseText)
Dim iCounter As Integer
Dim RCounter As Integer
Dim CCounter As Integer
iCounter = 1
Dim territory As Dictionary
Set territory = response("territory")
Dim Block_id As Variant
For Each Block_id In territory
Debug.Print Block_id
Sheet7.Range("a115").Offset(iCounter, 0).Value = Block_id
For Each sector In Block_id
Sheet7.Range("a115").Offset(iCounter, 1).Value = sector
Next sector
iCounter = iCounter + 1
Next Block_id
Block Id is printed correctly, but not "sector". I would have to the same for size,density, slots etc etc, with another level for "racket" and its items. I have been looking into dictionaries and collections, but cannot figure it out. please help!