It's a good thing I have lots of hair, because I am ripping them out strand by strand.
I changed my webservice to send me back a json string instead of XML.
My code is very simple
My data string looks like the
My error message is on the "NextObject" line, and it states java.lang.RuntimeException: JSON Object expected.
I changed my webservice to send me back a json string instead of XML.
My code is very simple
B4X:
Dim JSON As JSONParser
Dim Map1 As Map
JSON.Initialize(WS_url)
Map1 = JSON.NextObject
Dim m As Map
B4X:
[{"Title":"TARGETED","ReceiptTicketItemIndex":166661,"SerialNumber":1,"PerformanceIndex":11206,"TicketCategoryIndex":769,"ReceiptTicketItemIndex1":166661,"ReceiptItemIndex":307226,"CurtainTime":"\/Date(1475197200000)\/","FilmIndex":673,"AuditoriumIndex":19,"TicketCatName":"Senior 62+","TicketCatTypeIndex":4,"AudName":"AUD 7","ScheduleDate":"\/Date(1475128800000)\/","Swapped":null,"SwapReserved":null,"SeatRowNumber":null,"SeatName":null,"RowName":null,"RowScreenToProjection":null,"RowQty":null}]