Problem while parsing a specific JSON in VBA
up vote
0
down vote
favorite
im trying right now parsing mutliple JSONs in VBA in Excel. With Google and SO i managed to parse Multiple JSONs in a Format like this:
"name": "Starker Geschmeidiger Holz-Langbogen des Feuers",
"description": "",
"type": "Weapon",
"level": 44,
"rarity": "Masterwork",
"vendor_value": 120,
"default_skin": 3942,
"game_types": [
"Activity",
"Wvw",
"Dungeon",
"Pve"
],
"flags": [
"SoulBindOnUse"
],
"restrictions": ,
"id": 28445,
"chat_link": "[&AgEdbwAA]",
"icon": "https://render.guildwars2.com/file/C6110F52DF5AFE0F00A56F9E143E9732176DDDE9/65015.png",
"details":
"type": "LongBow",
"damage_type": "Physical",
"min_power": 385,
"max_power": 452,
"defense": 0,
"infusion_slots": ,
"infix_upgrade":
"id": 142,
"attributes": [
"attribute": "Power",
"modifier": 85
,
"attribute": "Precision",
"modifier": 61
]
,
"suffix_item_id": 24547,
"secondary_suffix_item_id": ""
I do it like this:
Private Function Get_Name(id As Integer) As String
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/items/" & id & "?lang=de"
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
For Each sItem In oJSON
If sItem = "name" Then
Get_Name = oJSON(sItem)
End If
Next
End Function
That works fine, but i have one JSON i get from the API, that has a different Format and i dont manage to get this to work too.. It hast the following Format:
[
"id": 12134,
"category": 5,
"count": 204
,
"id": 12238,
"category": 5,
"count": 150
,
"id": 12147,
"category": 5,
"count": 146
,
"id": 12142,
"category": 5,
"count": 215
,
....
]
Thats my Try so Far:
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
MsgBox sGetResult
Dim oJSON As Collection
Set oJSON = JsonConverter.ParseJson(sGetResult)
MsgBox oJSON
For Each sItem In oJSON
'If oJSON(sItem)("id") = id Then
' Get_Anzahl_Im_Lager = oJSON(sItem)("count")
' End If
Get_Anzahl_Im_Lager = sItem
Exit Function
Next
End Function
Problem is,according to the Debugger it parses the Array, but i just get an Empty Object back here, oJSON is empty, while sGetResult hast the JSON Data in it.
Any Solutions?
arrays json vba parsing
add a comment |
up vote
0
down vote
favorite
im trying right now parsing mutliple JSONs in VBA in Excel. With Google and SO i managed to parse Multiple JSONs in a Format like this:
"name": "Starker Geschmeidiger Holz-Langbogen des Feuers",
"description": "",
"type": "Weapon",
"level": 44,
"rarity": "Masterwork",
"vendor_value": 120,
"default_skin": 3942,
"game_types": [
"Activity",
"Wvw",
"Dungeon",
"Pve"
],
"flags": [
"SoulBindOnUse"
],
"restrictions": ,
"id": 28445,
"chat_link": "[&AgEdbwAA]",
"icon": "https://render.guildwars2.com/file/C6110F52DF5AFE0F00A56F9E143E9732176DDDE9/65015.png",
"details":
"type": "LongBow",
"damage_type": "Physical",
"min_power": 385,
"max_power": 452,
"defense": 0,
"infusion_slots": ,
"infix_upgrade":
"id": 142,
"attributes": [
"attribute": "Power",
"modifier": 85
,
"attribute": "Precision",
"modifier": 61
]
,
"suffix_item_id": 24547,
"secondary_suffix_item_id": ""
I do it like this:
Private Function Get_Name(id As Integer) As String
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/items/" & id & "?lang=de"
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
For Each sItem In oJSON
If sItem = "name" Then
Get_Name = oJSON(sItem)
End If
Next
End Function
That works fine, but i have one JSON i get from the API, that has a different Format and i dont manage to get this to work too.. It hast the following Format:
[
"id": 12134,
"category": 5,
"count": 204
,
"id": 12238,
"category": 5,
"count": 150
,
"id": 12147,
"category": 5,
"count": 146
,
"id": 12142,
"category": 5,
"count": 215
,
....
]
Thats my Try so Far:
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
MsgBox sGetResult
Dim oJSON As Collection
Set oJSON = JsonConverter.ParseJson(sGetResult)
MsgBox oJSON
For Each sItem In oJSON
'If oJSON(sItem)("id") = id Then
' Get_Anzahl_Im_Lager = oJSON(sItem)("count")
' End If
Get_Anzahl_Im_Lager = sItem
Exit Function
Next
End Function
Problem is,according to the Debugger it parses the Array, but i just get an Empty Object back here, oJSON is empty, while sGetResult hast the JSON Data in it.
Any Solutions?
arrays json vba parsing
1
Any reason why you madeDim oJSON As Collection
instead ofDim oJSON as Object
?
– drec4s
Nov 10 at 18:15
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
im trying right now parsing mutliple JSONs in VBA in Excel. With Google and SO i managed to parse Multiple JSONs in a Format like this:
"name": "Starker Geschmeidiger Holz-Langbogen des Feuers",
"description": "",
"type": "Weapon",
"level": 44,
"rarity": "Masterwork",
"vendor_value": 120,
"default_skin": 3942,
"game_types": [
"Activity",
"Wvw",
"Dungeon",
"Pve"
],
"flags": [
"SoulBindOnUse"
],
"restrictions": ,
"id": 28445,
"chat_link": "[&AgEdbwAA]",
"icon": "https://render.guildwars2.com/file/C6110F52DF5AFE0F00A56F9E143E9732176DDDE9/65015.png",
"details":
"type": "LongBow",
"damage_type": "Physical",
"min_power": 385,
"max_power": 452,
"defense": 0,
"infusion_slots": ,
"infix_upgrade":
"id": 142,
"attributes": [
"attribute": "Power",
"modifier": 85
,
"attribute": "Precision",
"modifier": 61
]
,
"suffix_item_id": 24547,
"secondary_suffix_item_id": ""
I do it like this:
Private Function Get_Name(id As Integer) As String
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/items/" & id & "?lang=de"
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
For Each sItem In oJSON
If sItem = "name" Then
Get_Name = oJSON(sItem)
End If
Next
End Function
That works fine, but i have one JSON i get from the API, that has a different Format and i dont manage to get this to work too.. It hast the following Format:
[
"id": 12134,
"category": 5,
"count": 204
,
"id": 12238,
"category": 5,
"count": 150
,
"id": 12147,
"category": 5,
"count": 146
,
"id": 12142,
"category": 5,
"count": 215
,
....
]
Thats my Try so Far:
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
MsgBox sGetResult
Dim oJSON As Collection
Set oJSON = JsonConverter.ParseJson(sGetResult)
MsgBox oJSON
For Each sItem In oJSON
'If oJSON(sItem)("id") = id Then
' Get_Anzahl_Im_Lager = oJSON(sItem)("count")
' End If
Get_Anzahl_Im_Lager = sItem
Exit Function
Next
End Function
Problem is,according to the Debugger it parses the Array, but i just get an Empty Object back here, oJSON is empty, while sGetResult hast the JSON Data in it.
Any Solutions?
arrays json vba parsing
im trying right now parsing mutliple JSONs in VBA in Excel. With Google and SO i managed to parse Multiple JSONs in a Format like this:
"name": "Starker Geschmeidiger Holz-Langbogen des Feuers",
"description": "",
"type": "Weapon",
"level": 44,
"rarity": "Masterwork",
"vendor_value": 120,
"default_skin": 3942,
"game_types": [
"Activity",
"Wvw",
"Dungeon",
"Pve"
],
"flags": [
"SoulBindOnUse"
],
"restrictions": ,
"id": 28445,
"chat_link": "[&AgEdbwAA]",
"icon": "https://render.guildwars2.com/file/C6110F52DF5AFE0F00A56F9E143E9732176DDDE9/65015.png",
"details":
"type": "LongBow",
"damage_type": "Physical",
"min_power": 385,
"max_power": 452,
"defense": 0,
"infusion_slots": ,
"infix_upgrade":
"id": 142,
"attributes": [
"attribute": "Power",
"modifier": 85
,
"attribute": "Precision",
"modifier": 61
]
,
"suffix_item_id": 24547,
"secondary_suffix_item_id": ""
I do it like this:
Private Function Get_Name(id As Integer) As String
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/items/" & id & "?lang=de"
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
For Each sItem In oJSON
If sItem = "name" Then
Get_Name = oJSON(sItem)
End If
Next
End Function
That works fine, but i have one JSON i get from the API, that has a different Format and i dont manage to get this to work too.. It hast the following Format:
[
"id": 12134,
"category": 5,
"count": 204
,
"id": 12238,
"category": 5,
"count": 150
,
"id": 12147,
"category": 5,
"count": 146
,
"id": 12142,
"category": 5,
"count": 215
,
....
]
Thats my Try so Far:
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
MsgBox sGetResult
Dim oJSON As Collection
Set oJSON = JsonConverter.ParseJson(sGetResult)
MsgBox oJSON
For Each sItem In oJSON
'If oJSON(sItem)("id") = id Then
' Get_Anzahl_Im_Lager = oJSON(sItem)("count")
' End If
Get_Anzahl_Im_Lager = sItem
Exit Function
Next
End Function
Problem is,according to the Debugger it parses the Array, but i just get an Empty Object back here, oJSON is empty, while sGetResult hast the JSON Data in it.
Any Solutions?
arrays json vba parsing
arrays json vba parsing
asked Nov 10 at 18:04
Schesam
419
419
1
Any reason why you madeDim oJSON As Collection
instead ofDim oJSON as Object
?
– drec4s
Nov 10 at 18:15
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21
add a comment |
1
Any reason why you madeDim oJSON As Collection
instead ofDim oJSON as Object
?
– drec4s
Nov 10 at 18:15
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21
1
1
Any reason why you made
Dim oJSON As Collection
instead of Dim oJSON as Object
?– drec4s
Nov 10 at 18:15
Any reason why you made
Dim oJSON As Collection
instead of Dim oJSON as Object
?– drec4s
Nov 10 at 18:15
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
Made it.. Sometimes i should just start thinking from a new Point on :D
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
If Not IsEmpty(Tabelle2.Cells(1, 7)) Then
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
Else
Exit Function
End If
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Dim sItem, cnt&
For Each sItem In oJSON
cnt = cnt + 1
If oJSON(cnt)("id") = id Then
Get_Anzahl_Im_Lager = oJSON(cnt)("count")
Exit Function
End If
Next
End Function
add a comment |
up vote
0
down vote
The JSON objects are of two different types. One is dictionary and one is a collection. Use TypeName to determine which you are getting from the responseText and handle as required e.g.
Dim item As Long, oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Select Case TypeName(oJSON)
Case "Collection"
For Each item In json
Debug.Print item("count")
Next
Case "Dictionary"
Debug.Print json("name")
End Select
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Made it.. Sometimes i should just start thinking from a new Point on :D
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
If Not IsEmpty(Tabelle2.Cells(1, 7)) Then
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
Else
Exit Function
End If
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Dim sItem, cnt&
For Each sItem In oJSON
cnt = cnt + 1
If oJSON(cnt)("id") = id Then
Get_Anzahl_Im_Lager = oJSON(cnt)("count")
Exit Function
End If
Next
End Function
add a comment |
up vote
0
down vote
accepted
Made it.. Sometimes i should just start thinking from a new Point on :D
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
If Not IsEmpty(Tabelle2.Cells(1, 7)) Then
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
Else
Exit Function
End If
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Dim sItem, cnt&
For Each sItem In oJSON
cnt = cnt + 1
If oJSON(cnt)("id") = id Then
Get_Anzahl_Im_Lager = oJSON(cnt)("count")
Exit Function
End If
Next
End Function
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Made it.. Sometimes i should just start thinking from a new Point on :D
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
If Not IsEmpty(Tabelle2.Cells(1, 7)) Then
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
Else
Exit Function
End If
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Dim sItem, cnt&
For Each sItem In oJSON
cnt = cnt + 1
If oJSON(cnt)("id") = id Then
Get_Anzahl_Im_Lager = oJSON(cnt)("count")
Exit Function
End If
Next
End Function
Made it.. Sometimes i should just start thinking from a new Point on :D
Private Function Get_Anzahl_Im_Lager(id As Integer) As Integer
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
If Not IsEmpty(Tabelle2.Cells(1, 7)) Then
sURL = "https://api.guildwars2.com/v2/account/materials?access_token=" & Tabelle2.Cells(1, 7)
Else
Exit Function
End If
sRequest = sURL
httpObject.Open "GET", sRequest, False
httpObject.send
sGetResult = httpObject.responseText
Dim oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Dim sItem, cnt&
For Each sItem In oJSON
cnt = cnt + 1
If oJSON(cnt)("id") = id Then
Get_Anzahl_Im_Lager = oJSON(cnt)("count")
Exit Function
End If
Next
End Function
answered Nov 10 at 19:31
Schesam
419
419
add a comment |
add a comment |
up vote
0
down vote
The JSON objects are of two different types. One is dictionary and one is a collection. Use TypeName to determine which you are getting from the responseText and handle as required e.g.
Dim item As Long, oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Select Case TypeName(oJSON)
Case "Collection"
For Each item In json
Debug.Print item("count")
Next
Case "Dictionary"
Debug.Print json("name")
End Select
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
add a comment |
up vote
0
down vote
The JSON objects are of two different types. One is dictionary and one is a collection. Use TypeName to determine which you are getting from the responseText and handle as required e.g.
Dim item As Long, oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Select Case TypeName(oJSON)
Case "Collection"
For Each item In json
Debug.Print item("count")
Next
Case "Dictionary"
Debug.Print json("name")
End Select
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
add a comment |
up vote
0
down vote
up vote
0
down vote
The JSON objects are of two different types. One is dictionary and one is a collection. Use TypeName to determine which you are getting from the responseText and handle as required e.g.
Dim item As Long, oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Select Case TypeName(oJSON)
Case "Collection"
For Each item In json
Debug.Print item("count")
Next
Case "Dictionary"
Debug.Print json("name")
End Select
The JSON objects are of two different types. One is dictionary and one is a collection. Use TypeName to determine which you are getting from the responseText and handle as required e.g.
Dim item As Long, oJSON As Object
Set oJSON = JsonConverter.ParseJson(sGetResult)
Select Case TypeName(oJSON)
Case "Collection"
For Each item In json
Debug.Print item("count")
Next
Case "Dictionary"
Debug.Print json("name")
End Select
edited Nov 11 at 12:37
answered Nov 10 at 19:27
QHarr
25.7k81839
25.7k81839
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
add a comment |
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
Did you try this?
– QHarr
Nov 11 at 12:36
Did you try this?
– QHarr
Nov 11 at 12:36
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
No, but that Solution will i keep in Mind. In my Case, each JSON i get from the API with same Parameters has same Format, so i dont need to Separate, which Format i have to Parse. But I think this will hapen in the Future, so i will keep it
– Schesam
Nov 12 at 12:08
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53241905%2fproblem-while-parsing-a-specific-json-in-vba%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Any reason why you made
Dim oJSON As Collection
instead ofDim oJSON as Object
?– drec4s
Nov 10 at 18:15
Yes, i had is as an Object, but since it doesnt work, i tried to change it do Collection, since internally, for Arrays a Collection is made, but if i write "Object" or "Collection", both stay empty
– Schesam
Nov 10 at 18:20
I prefer to use Script Control and Douglas Crockford's own JSON parsing library, exceldevelopmentplatform.blogspot.com/2018/01/…
– S Meaden
Nov 10 at 19:21