Echo the fetched data as JSON