human
backslash json string.
assistant
Here is a Python function to backslash a json string

import json

def __get_json_string(json_string):
    """ Return the text for the given root node (xml.dom.minidom). """
    txt = ""
    for e in json_string.split('\n'):
        txt += e
    return txt

# Enter the json string
json_string = """
{
    "name": "
Rosey",
    "age": 20
}
"""

# Calling the function
print((__get_json_string(json_string)))

#Example Output
# {    "name": "
Rosey",    "age": 20}

#Remember to inspect code for bugs.