Interfaces/GraphQL: Improve debugging
This commit is contained in:
@@ -153,7 +153,9 @@ Public Class frmMain
|
||||
End Using
|
||||
End Using
|
||||
|
||||
Dim oObj As JObject = JsonConvert.DeserializeObject(oResult)
|
||||
'Dim oObj As JObject = JsonConvert.DeserializeObject(oResult)
|
||||
Dim oObj As JObject = JObject.Parse(oResult)
|
||||
|
||||
Dim oData As SAPData = ConvertResponse(oResult)
|
||||
|
||||
_Logger.Debug("Inserting [{0}] items for datapool [{1}]", oData.sapdaten.Count, oDatapool)
|
||||
@@ -203,7 +205,13 @@ Public Class frmMain
|
||||
End Using
|
||||
End Using
|
||||
|
||||
Dim oObj As JObject = JsonConvert.DeserializeObject(oResult)
|
||||
Dim oPath = "data.auftraege.auftraege"
|
||||
Dim oObj As JObject = JObject.Parse(oResult)
|
||||
If _Interface.ReadJSONPathFragmented(oObj, oPath) = False Then
|
||||
MsgBox($"JSONPath [{oPath}] was not successfully read", MsgBoxStyle.Critical, Text)
|
||||
End If
|
||||
'Dim oObj As JObject = JsonConvert.DeserializeObject(oResult)
|
||||
|
||||
Dim oIndentedJson As String = JsonConvert.SerializeObject(oObj, Formatting.Indented)
|
||||
txtResult.Text = oIndentedJson
|
||||
|
||||
@@ -217,6 +225,7 @@ Public Class frmMain
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Sub SaveConfig()
|
||||
_Config.Config.ConnectionString = txtConnectionString.Text
|
||||
_Config.Config.BaseUrl = txtBaseUrl.Text
|
||||
|
||||
Reference in New Issue
Block a user