I'm trying to get some information from that JSON-string.
I found an example how to do and and tried to adapt if for my task:
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set outFile = fso.CreateTextFile("output.txt", True)
' A JSON array must be loaded using JsonArray:
set jsonArray = CreateObject("Chilkat_9_5_0.JsonArray")
success = jsonArray.Load("https://api.crypto-bridge.org/api/v1/ticker")
If (success <> 1) Then
outFile.WriteLine(jsonArray.LastErrorText) '!!! "Unable to get array at index 0."
WScript.Quit
End If
' Examine the values:
i = 0
Do While i < jsonArray.Size
' jsonObj is a Chilkat_9_5_0.JsonObject
Set jsonObj = jsonArray.ObjectAt(i)
outFile.WriteLine(i & ": " & jsonObj.StringOf("last"))
i = i + 1
Loop
outFile.Close
And all I get in output.txt is
ChilkatLog:
Load:
ChilkatVersion: 9.5.0.71
Unable to get array at index 0.
--Load
--ChilkatLog
Could you help me please to understand what am I doing wrong? Thank you!