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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to