Hi,
in debug mode i have a problem in creation of a Json from Map
My code
this code return this json:
{"IsAdmin":0,"CallerType":1,"Version":"1.8.6"}
but the right json should be:
{"IsAdmin":False,"CallerType":1,"Version":"1.8.6"}
The same code in B4a work fine with some difference, Json.ToString in B4a include also Null value.
I didn't test code in release mode.
Thanks everybody for a solution.
in debug mode i have a problem in creation of a Json from Map
My code
B4X:
WebApiAuthBase.Put("IsAdmin",False)
WebApiAuthBase.Put("Roles",Null)
WebApiAuthBase.Put("License",Null)
WebApiAuthBase.Put("Modules",Null)
WebApiAuthBase.Put("Auths",Null)
WebApiAuthBase.Put("Factory",Null)
WebApiAuthBase.Put("Module",Null)
WebApiAuthBase.Put("Area",Null)
WebApiAuthBase.Put("Geo",Null)
WebApiAuthBase.Put("Version",Vers_AppCore_Code)
WebApiAuthBase.Put("CallerType",1)
Dim json As JSONGenerator
json.Initialize(WebApiAuthBase)
Log(json.ToString)
this code return this json:
{"IsAdmin":0,"CallerType":1,"Version":"1.8.6"}
but the right json should be:
{"IsAdmin":False,"CallerType":1,"Version":"1.8.6"}
The same code in B4a work fine with some difference, Json.ToString in B4a include also Null value.
I didn't test code in release mode.
Thanks everybody for a solution.