added settings to let user transform data

we could let the consumer tackle json data that comes from server but not in the format {label:"Item 1", id:1} format. They just need to define a function that would take their data and then convert to the required format