Android Question JSON NON Standard problem with symbols "\/" in DATE

Daniel-White

Active Member
Licensed User
Howdy, everyone.

I have this in Json

Dim gen As JSONGenerator
Dim myObj As Map
myObj.Initialize
myObj.Put("dttm","01/03/2017 16:24:34")

gen.Initialize(myObj)
Msgbox(gen.ToString,"TESTING")

The Msgbox show {"dttm":01\/03\/2017 14:24:34"}

We are migrating APP from Cordova to B4a :D, in cordova (Javascript) the Json output this :
{"dttm":01/03/2017 14:24:34"} without the "\" the Standard Json found the "/" and remplace by "\/"

Unfortunately, in the backend, the oracle database is waiting for that format "dttm":01/03/2017 14:24:34"

How we can output this in B4A {"dttm":01/03/2017 14:24:34"} :eek: without modify the backend.

Thanks for any light in the tunnel.
 
Top