[Bug 26286] New: Add option to use JSON objects rather than JSON arrays for public reports
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@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- 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 are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286 --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- You an use the annotated operator, then you can use the names. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Katrin Fischer from comment #2)
You an use the annotated operator, then you can use the names.
bug 11491 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- (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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26286 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #5 from David Cook <dcook@prosentient.com.au> --- *** This bug has been marked as a duplicate of bug 11491 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org