[wp-trac] [WordPress Trac] #41998: REST API: Add debug mode
WordPress Trac
noreply at wordpress.org
Wed Sep 27 00:42:08 UTC 2017
#41998: REST API: Add debug mode
--------------------------+------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
--------------------------+------------------------------
Comment (by Viper007Bond):
Replying to [comment:1 johnbillion]:
> Fun fact: `JSON_PRETTY_PRINT` was only introduced in PHP 5.4.
Yep, but we have compatibility already in place for it: #30139
Replying to [comment:2 adamsilverstein]:
> @Viper007Bond I've had great luck with browser extensions for viewing
JSON, such as [https://chrome.google.com/webstore/detail/json-
viewer/gbmdgpbipfallnflgajpaliibnhdgobh JSON Viewer] for Chrome, which in
addition to the pretty printing, lets you collapse/expand parts of the
object tree.
A similar feature is built into Firefox Developer Edition which I use but
I also use the REST API client in my code editor (PHPStorm) which sadly
just displays the raw response (although I can click a few times and get
it formatted). Passing authorization headers and POST data can be a pain
in the browser.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41998#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list