Hi, I have a problem with parsing JSON data.
My source code:
> Dim xPoslatUmo As String = ConfigurationManager.AppSettings.Item("UMOPoslat")
> If xPoslatUmo = "Ano" Then
> Dim request As WebRequest = WebRequest.Create(ConfigurationManager.AppSettings.Item("UMOServer"))
> request.Method = "POST"
> Dim postdata As String = "{""GENCELEK"":""SAS_CALLC""},{""GENMSGTEXT"":""info""},{""Volat"":" + xvolat + "},{""Stav"":""" + xstav + "},{""Info"":""" + Left(xinfo, 255) + "}"
> Dim byteArray As Byte() = Encoding.UTF8.GetBytes(postdata)
> request.ContentType = "application/x-www-form-urlencoded"
> request.ContentLength = byteArray.Length
> Dim dataStream As Stream = request.GetRequestStream()
> dataStream.Write(byteArray, 0, byteArray.Length)
> dataStream.Close()
> Dim response As WebResponse = request.GetResponse()
> mlog.LogujKontroly(postdata)
> mlog.LogujKontroly("Poslani UMO " + (CType(response, HttpWebResponse)).StatusDescription)
> response.Close()
> Else
> mlog.LogujKontroly("Poslani UMO - je nastaveno neposilat")
> End If
at logstash parsing error:
{"timestamp":"20220525","tags":["_jsonparsefailure"],"message":"{"Volat":Volat},{"Stav":"KO},{"Info":" Kampan: out_prodej_lead_pad_vypis_poplatku je ve stavu Activated}","headers":{"http_host":"12.34.56.78:9771","request_path":"/","connection":"Keep-Alive","http_user_agent":null,"http_accept":null,"content_length":"104","http_version":"HTTP/1.1","content_type":"application/x-www-form-urlencoded","request_method":"POST"},"host":"12.34.56.78","@timestamp":"2022-05-25T19:02:43.723Z"}
Thank you for advice.