我们可以在 Android Network Profiler 面板中格式化 JSON 响应吗?

Can we format JSON response in Android Network Profiler panel?

我想在 Android Network Profiler 中格式化 JSON 响应,而不是复制并粘贴到其他工具来格式化 JSON 响应。

Android Network Profiler 是一种检查网络流量的便捷工具。但是我无法立即读取响应数据,因为我们的 JSON 数据显示在一行字符串中。

有什么方法可以在 Android Network Profiler 面板中获得格式化的 JSON 响应?

我想你正在寻找这样的东西

https://android.jlelse.eu/monitor-network-response-on-android-studio-39f572d8703b

好的,新版本 Android Studio 3.3 在分析器中提供了新功能 View Parsed

它可以自动格式化响应。

更多信息请参阅 View formatted text for connection payloads in the Network profiler 部分。