Bug? Issue with String obfuscation

klarsys

Active Member
Licensed User
Longtime User
I have a string like below in Process_Globals of a service:
B4X:
Private settings As String = "{""debug"":""true""}"

My code sends this JSON string to a server and it works well in Debug and Release builds.

However, in Release (obfuscated) builds, the server claims to receive invalid JSON. It receives the above string as:
B4X:
{\"debug\":\"true\"}

Is this a bug or should I write my JSON string differently?

I can use JSONGenerator, but this is static string, so I used it this way.
 

moster67

Expert
Licensed User
Longtime User
perhaps replace the double quotes with chr(34)? Just guessing....
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…