ZK JSON: improve usability by accepting Collection instead of List

XMLWordPrintable

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

      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...

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

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

              Created:
              Updated:
              Resolved: