At the moment, /cgi-bin/koha/svc/report outputs a JSON array of JSON arrays. It would be better to output a JSON array of JSON objects. Currently, you have to know the index position of the column you want. If you change your report, you can easily break your API consumer logic. In the future, you could use the column name as the object key. This means that you could update your report with a new column, and so long as you keep the other column names the same, your existing API consumer would work fine.
Also, unless you're the writer of the report, it's impossible to know what data you're working with when using a JSON array of JSON arrays.
You an use the annotated operator, then you can use the names.
(In reply to Katrin Fischer from comment #2) > You an use the annotated operator, then you can use the names. bug 11491
(In reply to Katrin Fischer from comment #2) > You an use the annotated operator, then you can use the names. Interesting. I'd never heard of that before. That looks like just the thing.
*** This bug has been marked as a duplicate of bug 11491 ***