lue;
    let searchreplace = document.getElementById('swap_fielddata').value;
    const contentsDiv = document.getElementById('contents');

    let replacedobject = null;
    if(searchreplace=="")
    {
        replacedobject = "";
    }
    if(searchreplace!="null" && searchreplace!="")
    {
        try {
            if(!searchreplace.trim().startsWith("{") && !searchreplace.trim().startsWith("["))
            {
                searchreplace = `"${searchreplace}"`;
            }
          