alphagov/whitehall — pull request #24 by floehopper (2012-08-20 12:04:42+00:00)
Title: Search requests should be able to respond with results in JSON format.

* This brings whitehall and specialist guidance search into line with
mainstream search. The JSON format should be very similar to
mainstream in both cases i.e. an array of hashes with each hash
representing a single search result.
* Note that we are currently not including the mainstream results which
_are_ included in the HTML version of the results for specialist
guidance.
* If we want to include the mainstream results for specialist guidance in
the JSON, we'd need to think about what is the best way to structure the
JSON. This would in turn mean we might need to change the structure of
mainstream JSON to keep everything consistent.
* Given that before this commit, a 500 error was occurring, it seems
as if this change is a significant improvement and we can always
iterate towards a better solution.