def unicode_escape(data):
    """
    This encoding is used in JSON:
        Double quotes become: \u0022
        Single quotes become: \u0027
    """
    return data.replace(u'"', u'\\u0022').replace(u"'", u'\\u0027')