Query Details

Substitute Json Characters

Query

let text = ```text```;
print
    replace_strings(
        replace_string(
            text
        , @"\", @"\\")
    ,   dynamic([ '"' ,  '\n']),
        dynamic([@'\"', @'\n']))

Explanation

The query is replacing certain characters in a given text. It replaces backslashes with double backslashes and double quotes and newlines with their respective escape sequences.

Details

Jose Sebastián Canós profile picture

Jose Sebastián Canós

Released: September 19, 2023

Tables

There is not enough information provided to determine the name of the table or tables that the query or queries use.

Keywords

Replace,Strings,Replace_string,Text,Dynamic

Operators

replace_stringsreplace_stringprintdynamic

Actions