changed variable name "data" to "chosen_json"