rename value_to_json and value_to_text to to_json and to_text respectively