I have looked all over to find a way to disable the "escaping" of the slash "/" in a JSON string created by the JSONGenerator but I am at a loss at this point without a solution. For example in this very simple code fragment:
The Log produces:
{ "AdminFolder": "root\/users\/admin" }
What I would like to get is:
{ "AdminFolder": "root/users/admin" }
Any suggestions would be greatly appreciated.
Thanks!
B4X:
Dim Map1 As Map
Map1.Initialize
Map1.Put("AdminFolder","root/users/admin")
Dim JSONGenerator As JSONGenerator
JSONGenerator.Initialize(Map1)
Log(JSONGenerator.ToPrettyString(2))
The Log produces:
{ "AdminFolder": "root\/users\/admin" }
What I would like to get is:
{ "AdminFolder": "root/users/admin" }
Any suggestions would be greatly appreciated.
Thanks!