TagController for fetching data in JSON form