I successfully retrieved the values. When you add at debug time a line it does not return the values. If you stop the code execution and restart the code it works.
I successfully retrieved the values. When you add at debug time a line it does not return the values. If you stop the code execution and restart the code it works.
Dim sJSON As String = $"{"act":"1","data":{"field1":"1","field2":"2"}}"$
Log(sJSON.As(JSON).ToMap.Get("act"))
Log(sJSON.As(JSON).ToMap.Get("data").As(Map).Get("field1"))
Log(sJSON.As(JSON).ToMap.Get("data").As(Map).Get("field2"))
Dim sJSON As String = $"{"act":"1","data":{"field1":"1","field2":"2"}}"$
Log(sJSON.As(JSON).ToMap.Get("act"))
Log(sJSON.As(JSON).ToMap.Get("data").As(Map).Get("field1"))
Log(sJSON.As(JSON).ToMap.Get("data").As(Map).Get("field2"))
Sorry for the LOL reaction to your post. It slipped from my mouse. Some times bugging or debugging can be hillarious.
I have already managed to get the values. What I was trying to do is reproduce the problem why I could not get the values previously. It seems that B4J has some attitude problems.