add JSON to the chooser function