itgirl Active Member Licensed User Longtime User May 20, 2018 #1 Hello guys i have a very simple Json Code: Copy {"_status":"ERROR","_message":"Invalid authentication information"} as you can see its pretty plain I've tried parsing using Code: Copy Dim parser As JSONParser parser.Initialize(JsonString) Dim root As Map = parser.NextObject Dim _message As String = root.Get("_message") Dim _status As String = root.Get("_status") always return error [java.lang.RuntimeException: JSON Array expected.] and since my json start with a { then its a map but i've tried list too but with no luck !! so anyone can help
Hello guys i have a very simple Json Code: Copy {"_status":"ERROR","_message":"Invalid authentication information"} as you can see its pretty plain I've tried parsing using Code: Copy Dim parser As JSONParser parser.Initialize(JsonString) Dim root As Map = parser.NextObject Dim _message As String = root.Get("_message") Dim _status As String = root.Get("_status") always return error [java.lang.RuntimeException: JSON Array expected.] and since my json start with a { then its a map but i've tried list too but with no luck !! so anyone can help
itgirl Active Member Licensed User Longtime User May 20, 2018 #2 Solved, it appear that something was wrong with the headers or something im not sure as i was parsing directly from input Upvote 0
Solved, it appear that something was wrong with the headers or something im not sure as i was parsing directly from input