[Koha-bugs] [Bug 26286] New: Add option to use JSON objects rather than JSON arrays for public reports
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 04:33:58 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286
Bug ID: 26286
Summary: Add option to use JSON objects rather than JSON arrays
for public reports
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Reports
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list