Ive started using the As(JSON).ToMap approach in some of my projects (prior to the new library update I had a fuinction to do this) but Im getting the #22 Warning that the types dont match.
If there any way to tidy this up?
B4X:
Dim body as Map
body = Cursor.GetString2(0).As(JSON).ToMap ' Shows Warning #22
Ive tried brackets around various bits but this doesnt seem to help.
I find Warning #22 useful so I dont want to disable it.
The JSON libraries, which are internal libraries, were updated. The new version is 1.20. There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the new As keyword. The idea is that you have a collection or string, you direct the compiler to treat...
The JSON libraries, which are internal libraries, were updated. The new version is 1.20. There is a new JSON type which is used to convert maps or lists to json strings and vice versa, using the new As keyword. The idea is that you have a collection or string, you direct the compiler to treat...