Android Question Json parser

sz4t4n

Member
Licensed User
Longtime User
Hi,

i want to parse a JSON from this page -> http://api.nbp.pl/api/exchangerates/tables/A/?format=json

I need a list of currency but i have always an error
upload_2018-4-5_21-58-40.png



this is my code:

B4X:
Sub Button1_Click
    
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download("http://api.nbp.pl/api/exchangerates/tables/A/?format=json")
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Log(j.GetString)
        Dim JSON As JSONParser
        JSON.Initialize(j.GetString)
        Dim Map1 As Map
        Dim list1 As List
        Map1 = JSON.NextObject
        list1 = Map1.Get("rates")
    End If
    j.Release
    
End Sub

any ideas?
 
Top