human
Solve the following python programming problem given the following code:
def to_json(value) : 
    'Encode `value` to JSON.' 
    def replace(match) : 
        return _js_quote [match.group (0)] 
text = dumps (replace, sort_keys = True, separators = (',', ':')) 
    return _js_quote_re.sub (replace, text) 

    
    

    Fix the buggy line: text = dumps (replace, sort_keys = True, separators = (',', ':'))
assistant
#Here is Python code to fix the buggy line: text = dumps (replace, sort_keys = True, separators = (',', ':'))
.

text = dumps (value, sort_keys = True, separators = (',', ':'))