Bug? Issue with String obfuscation

Discussion in 'Bugs & wishlist' started by klarsys, Mar 24, 2015.

  1. klarsys

    klarsys Active Member Licensed User

    I have a string like below in Process_Globals of a service:
    Code:
    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:
    Code:
    {\"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.
     
    ArminKH likes this.
  2. moster67

    moster67 Expert Licensed User

    perhaps replace the double quotes with chr(34)? Just guessing....
     
    klarsys likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    What is the output of Log(YourVariable) in release obfuscated mode?
     
  4. klarsys

    klarsys Active Member Licensed User

    Settings: {\"debug\":\"true\"}

    In release mode:
    Settings: {"debug":"true"}
     
  5. klarsys

    klarsys Active Member Licensed User

    That helps!
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    This bug is fixed for the next version.
     
    ArminKH, DonManfred and klarsys like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice