# How do I get the json response in this scenary?

**URL:** <https://community.postman.com/t/how-do-i-get-the-json-response-in-this-scenary/31634>\
**Category:** Help Hub\
**Created:** [January 18, 2022, 1:57am UTC](https://community.postman.com/t/how-do-i-get-the-json-response-in-this-scenary/31634 "2022-01-18T01:57:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerospace-participa4](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aerospace-participa4](https://community.postman.com/u/aerospace-participa4)\
**Post date:** [January 18, 2022, 1:57am UTC](https://community.postman.com/t/how-do-i-get-the-json-response-in-this-scenary/31634/1 "2022-01-18T01:57:28Z")

</div>

Hello, Can someone guide me on how do I get this JSON format response in postman? I’m getting a view like HTML as a response in postman. How could I get logging in Postman and then access the URL which belongs to admin permission?  
After logging in … when I put the URL on a browser I’m getting the JSON format response… , please.

This is what I got on the browser

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/e/ae1109bc3ecdb099dbe53191fb69ca5ad64e4b69.png)

This is what I got on postman

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/a/aa156fd39e12f7157dc89ad1776ca8861b2660e7.png)

This is my controller and my route

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/0/e04516018d0e828577b0af59d0ef9a8edec1dee3.png)

_How I found the problem_:  
on postman.

_I’ve already tried_:  
I have set up the basic auth but I’m getting that HTML view.
