kraih/mojo — Issue #247: mojo get json parsing support
Author: tempire
Created: 2011-12-18 21:04:32+00:00
State: open

It seems to me that json support is a natural progression, considering $ua->get/ojo->g supports json everywhere else.

It would be a simple addition to Mojo::UserAgent. The question is syntax:

mojo get search.twitter.com/search.json?q=mojolicious json completed_in.results

Marcus suggested that it should do content type detection, which would eliminate the need for the json keyword. Forcing json detection could be done using --header.

If json was not parsed, or no json exists, I'm thinking it should notify the user accordingly.