Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1866

ZK JSON: improve usability by accepting Collection instead of List

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 6.5.3
    • Fix Version/s: 7.0.0
    • Component/s: General
    • Security Level: Jimmy
    • Labels:
      None

      Description

      the classes JSONValue and JSONArray could accept java.util.Collection instead of just List, this would improve usability of those classes. The change would only change one interface and have little impact on the implementation in JSONValue
      the same improvements were suggested and accepted in json-simple, but were never released...
      see https://code.google.com/p/json-simple/issues/list?can=2&q=Collection

      attached the 2 patched files...

        Attachments

        1. JSONArray.java
          5 kB
        2. JSONValue.java
          6 kB
        3. JSONValue.java
          6 kB

          Activity

            People

            Assignee:
            Jenkins Jenkins
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: