Vajk Hermecz
11/23/2021, 7:46 PM\/
in your password sent to the api/entities/dataSources/
endpoint, the server only stores a /
into the database. So looks like the value is not treated as a simple string, but escaping is evaluated on it.Vajk Hermecz
11/23/2021, 7:50 PM--trace-ascii /dev/stdout
args to see what is being sent to the server, and looked into the md.data_source
table to see what has been stored, that's how I found it.Robert Moucha
11/23/2021, 10:30 PM\
differently - it behaves like "escape character" that modified the meaning of the following character. Some characters have special meaning, e.g. \n
is a newline (0xA in ASCII encoding), \t
is a TAB character (0x09) and so on. So \/
escapes the forward slash char.
If you need to store \
using JSON format, you need to escape this character as well, so you need to store it as \\
See String grammar described in https://www.json.org/json-en.htmlRobert Moucha
11/23/2021, 10:38 PM\/
translates to literal /
, it is that JSON was designed for World-Wide Web so if you want to store HTML tag in JSON that is embedded in <script>
HTML tag. :)Vajk Hermecz
11/24/2021, 6:08 PM