Added convert_to_json()