Inspecting large JSON data in Chrome

后端 未结 4 547
你的背包
你的背包 2020-12-09 09:12

There is a page on my website that uses jquery AJAX to request JSON data from the PHP backend. I want to view the JSON returned to the browser, and is trying to do so using

相关标签:
4条回答
  • 2020-12-09 10:03

    Have you tried the "preview" tab - it lets you view your result as a proper JavaScript object, with the ability to expand nodes. It's much easier to work with than the raw text from the response tab.

    enter image description here

    0 讨论(0)
  • 2020-12-09 10:04

    I'm a little late to the party here but if you are at a breakpoint you can type the object name in and press "Enter" and the JSON object will be printed to the console window.

    0 讨论(0)
  • 2020-12-09 10:05

    I using this extensions for Json viewer :- https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc

    0 讨论(0)
  • 2020-12-09 10:07

    To see the complete response:

    1. Navigate to Developer Tools > Network > the given response > Response tab.
    2. Right click (control-click on Mac) in the Response area > Save As

    Response > Save As

    Screenshot from Version 24.0.1312.57 on Mac.

    0 讨论(0)
提交回复
热议问题