@classmethod
def escape_json_value(cls, json_value_IN, do_double_escape_quotes_IN=False,
    compact_white_space_IN=False):
    """
        Accepts a JSON value, adds a back slash in front of all quotation marks
           within the value.  Returns the escaped string.  Will add more things
           as I find them.
        """
    value_OUT = None
    if json_value_IN is not None and json_value_IN != '':
        value_OUT = json_value_IN
        if do_double_escape_quotes_IN == True:
            value_OUT = cls.REGEX_MATCH_UNESCAPED_QUOTES.sub('\\"', value_OUT)
            value_OUT = value_OUT.replace('\\"', '\\\\\\"')
        else:
            value_OUT = value_OUT.replace('"', '\\"')
        if '\n' in value_OUT:
            value_OUT = value_OUT.replace('\n', cls.REPLACE_NEWLINE_WITH)
        if compact_white_space_IN == True:
            value_OUT = cls.REGEX_MATCH_MULTIPLE_WHITE_SPACE.sub(' ', value_OUT
                )
    else:
        value_OUT = ''
    return value_OUT
