okfn/webstore — Issue #40: Refactor default result format
Author: rgrp
Created: 2011-10-28 21:40:35+00:00
State: open

Options:

* { keys: [column_names], data: [ [...] ] } - jsontuples
* [ { col: val, col: val, ... } ] - current default return .json
* { keys: [columns], data: [ {col: val, col:val}, ... ] }

NB: both 1 and 3 would allow for other keys such as count (aka numFound, total_rows) (cd #29).

Going forward we should switch to option (3) and make that the default for .json. If other options are wanted we can open more tickets.

In addition it may be desirable to expand column info from just a name to include things like type e.g.:

* columns: [ {name: ..., type: ..., ...} ]