this is a good example. it would have been better if the json source is called from a controller. would you please show me how that would look like?