diff --git a/C/common/config_category.cpp b/C/common/config_category.cpp index a3dffe5e10..1984bac2f4 100644 --- a/C/common/config_category.cpp +++ b/C/common/config_category.cpp @@ -1566,11 +1566,21 @@ ostringstream convert; else if (m_itemType == JsonItem || m_itemType == NumberItem || m_itemType == DoubleItem || - m_itemType == ScriptItem || m_itemType == CodeItem) { convert << ", \"default\" : \"" << JSONescape(m_default) << "\" }"; } + else if ( m_itemType == ScriptItem ) + { + if (m_default == "\"\"" ) // Already escaped blank value, No need to escape twice + { + convert << ", \"default\" : " << m_default << " }"; + } + else + { + convert << ", \"default\" : \"" << JSONescape(m_default) << "\" }"; + } + } return convert.str(); }