Sample code for 30+ languages & platforms
Visual Basic 6.0

Example: Http.GetLastJsonData method

Demonstrates the GetLastJsonData method.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim http As New ChilkatHttp
Dim resp As New ChilkatHttpResponse

' Only allow TLS 1.2 or better.
http.SslProtocol = "TLS 1.2 or higher"

success = http.HttpNoBody("GET","https://google.com/",resp)
If (success = 0) Then
    Debug.Print http.LastErrorText
    Exit Sub
End If

Dim json As New ChilkatJsonObject
json.EmitCompact = 0

http.GetLastJsonData json
Debug.Print json.Emit()

' Output as of Chilkat v11.1.0
' Additional information may be added as requested or needed in future versions of Chilkat.

' {
'   "tls": {
'     "params": {
'       "sniHostname": "www.google.com",
'       "allowConnectionOnlyIfServerChooses": "TLS 1.2 or higher"
'     },
'     "negotiatedTlsVersion": "TLS 1.3"
'   }
' }