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

ZK JSON: improve usability by accepting Collection instead of List

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 7.0.0
    • 6.5.3
    • General
    • Security Level: Jimmy
    • 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

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

              Created:
              Updated:
              Resolved: