I think a better approach than "?json=true" would be to to respect the "Accept" header values of "application/json" and "text/json" if they have the higher priority. XML output should also be an option, if it will indeed serve as an API end-point.
On 30 November 2016 at 20:08, Luca Toscano <[email protected]> wrote: > > > 2016-11-30 19:03 GMT+01:00 Daniel Gruno <[email protected]>: >> >> On 11/30/2016 06:54 PM, Jim Jagielski wrote: >> > I'm thinking about adding JSON support to mod_status... >> > the "plain" version output really stinks and lacks parity >> > w/ the info we provide via HTML, and it would be nice >> > to produce a really easily parseable format. >> > >> > Thoughts...? > > > +1, this will simplify a lot things like metrics collectors polling httpd > regularly (that don't need a nice html format). > >> +1, a ?json=true or some such to the query would be helpful. >> so you could do >> /server-status?json=true >> or >> /server-status?auto&json=true >> > > +1, I like the idea! > > Thanks! > > Luca >
