Get items by type controller finished, returns json data so that the items can be listed by type