kean / Pulse

Network logger for Apple platforms
https://pulselogger.com
MIT License
6.18k stars 294 forks source link

added json view #253

Closed abdula571 closed 1 week ago

abdula571 commented 3 months ago

added convenient json viewer for json response. used code from https://github.com/quentinfasquel/JSONView with some fixes

kean commented 3 months ago

Hey,

JSONView looks interesting, and something like this could be a valuable addition. However, I would prefer to include parts of this functionality, such as collapsing objects, in the main text view.

I added a new ConsoleViewDelegate protocol, and I plan to extend it in v4.3 to allow adding "plugins" in common areas of the Console. It will support extending the response view to support new response types without modifying the framework, adding custom actions to the existing response views, and more.

If you'd like to contribute and add some of these features to ConsoleViewDelegate, I'll appreciate it. In the meantime, I would recommend sticking with a fork.