ksenthilbabu
Member
Hi,
When i parse the json getting error : java.lang.NumberFormatException: For input string: "date"
When i parse the json in jsontool it parses without error and generates the json parsing code properly which is used above
When i parse the json getting error : java.lang.NumberFormatException: For input string: "date"
B4X:
Dim j As HttpJob
j.Initialize("", Me) 'name is empty as it is no longer needed
j.Download("https://www.timeapi.io/api/Time/current/zone?timeZone=Asia/Kolkata")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim parser As JSONParser
parser.Initialize(j.GetString)
Dim jroot As List = parser.NextObject
Dim date As String = jroot.Get("date")
End If
j.Release
When i parse the json in jsontool it parses without error and generates the json parsing code properly which is used above