this is the code I use to call parseJson
in vba
and in one case where I have a JSON
object, I am receiving the error 10001
which relates to the latest Json-vba library 2.2.3
when the "{"
or the "["
are expected.
Sub jsontest()
Dim http As Object
Set http = CreateObject("MSXML2.XMLHTTP")
'http.Open "GET", "https://bin.codingislove.com/document/ayequrimiy", False
http.Open "GET", "https://bin.codingislove.com/ayequrimiy.json", False
http.send
MsgBox (ParseJson(http.responseText)("Count"))
End Sub
The second .json
file shows the 10001 error
but the first one, the same file in text form, is perfectly executing. I tried as well including brackets when I call the json
string without success.
What should I correct in my parser call?