Android Question [Resolved]java.lang.RuntimeException: JSON Object expected.

Douglas Farias

Expert
Licensed User
Longtime User
{"Exists":true,"Blocked":false,"User":{"UserID":"13","NickName":"doidloko","ProfilePictureUrl":"asdaswdw","Status":"1"}}


B4X:
    Case "jobverificausuario"
    Log(respostadoservidor)
    Dim parser As JSONParser
    parser.Initialize(respostadoservidor)
    Dim root As Map = parser.NextObject
    Dim Exists As String = root.Get("Exists")
    Dim Blocked As String = root.Get("Blocked")

why i have error on the
Dim root As Map = parser.NextObject
this is a valid json

 

Douglas Farias

Expert
Licensed User
Longtime User
¬¬ i found
result is not only the json
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…