Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-875

JSON should support using pivot.collections.Map directly

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: core-json
    • Labels:
    • Environment:
      All

      Description

      When supplying a pivot.collections.Map as the data object for a TableView, the data is fetched for each row using JSON.get(...). However, this method will default to using the BeanAdapter for anything other than a java.util.Map, which results in values like "class", "capacity", "count" and "comparator" fetching the values for the Map object instead of using the "get" method of the actual map to get the values.
      This fix will likely speed things up (a bit) because the first "if" in the chain will now succeed for Pivot Map-based objects, instead of having to fail and do three other tests before getting to the "dictionary.get" for these objects.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: