Hi everyone!
I am trying to work with HEX and JSON parser. After a lot of troubles i faced a strange thing.
In the following code the User.Get("Surname") returns me the value "4.0" instead of the expected "4d".
("4d" should be the hex rappresentation of the letter "M")
Where i am wrong?
I attach here the working example.
I am trying to work with HEX and JSON parser. After a lot of troubles i faced a strange thing.
In the following code the User.Get("Surname") returns me the value "4.0" instead of the expected "4d".
("4d" should be the hex rappresentation of the letter "M")
Where i am wrong?
I attach here the working example.
B4X:
Dim Users As String = "[{Name=4d, Surname=4d},{Name=4d, Surname=4d}]"
Dim ListaOfUsers As List
ListaOfUsers.Initialize
Dim ParserProfili As JSONParser
ParserProfili.Initialize(Users)
ListaOfUsers = ParserProfili.NextArray
For Each User As Map In ListaOfUSers
Log("Name: " & User.Get("Name"))
Log("Surname: " & User.Get("Surname"))
Next