检查中铬大JSON数据 [英] Inspecting large JSON data in Chrome
问题描述
还有一个使用jQuery的AJAX从PHP后台请求JSON数据在我的网站页面。我想查看JSON返回给浏览器,并试图这样做,使用Chrome浏览器的开发者工具,在网络>响应
。
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 Chrome browser's Developer tools, under Network> Response
.
问题:虽然我能够通过选择XHR项目有查看JSON数据,响应似乎被中途切断。据Chrome浏览器,这JSON响应的大小300-400KB。我不知道是否当网页被接收,而不截断完整的JSON响应,如果没有,我怎么可以查看正在接收的全部数据?
Problem: Although I am able to view the JSON data by selecting the XHR item there, the response appears to be cut off midway. According to Chrome, this JSON response is 300-400KB in size. I wonder whether if the webpage is receiving the full JSON response without truncation, and if not, how can I view the full data being received?
推荐答案
你有没有尝试过的preVIEW选项卡 - 它可以让你查看你的结果作为一个合适的JavaScript对象,以扩大节点。这是很容易比从响应选项卡的原始文本的工作。
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.
这篇关于检查中铬大JSON数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!