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

JSON should support using pivot.collections.Map directly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • core-json
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: