B4J Question Slashes causing mayhem in my strings

MathiasM

Active Member
Licensed User
Hello

I try to put a URL in a json file. But the slashes makes my URLs invalid.
First I tried this:
B4X:
claimMap.Put("scope", "https://www.googleapis.com/admin/directory")
But the result when logging is: "scope": "https:\/\/www.googleapis.com\/admin\/directory",

So I thought, hey, I should use $ signs for smart strings. So I tried that, but no avail.

How can I fix this?

Thanks!
 
Top