action 'show' for categories controller return subcategories when receives json request