Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.0-pr
    • Labels:
      None

      Description

      It is difficult to use.

      JsonArray & JsonObject should direct support primitive type, include:

      Byte, Short, Integer, Long, BigInteger, BigDecimal, Float, Double
      Boolean, String
      null

      JsonArray & JsonObject should include pirimitive operation, like:
      class JsonObject {
      int getIntValue(String name, int defaultValue);
      Integer getInt(String name);
      long getLongValue(String name, int defaultValue);
      Long getLong(String name);
      ... ...

      JsonArray getJsonArray(String name);
      JsonObject getJsonObject(String name);
      }

      class JsonArray {
      int getIntValue(int index, int defaultValue);
      Integer getInt(int index);
      long getLongValue(int index, int defaultValue);
      Long getLong(int index);
      ... ...

      JsonArray getJsonArray(int index);
      JsonObject getJsonObject(int index);
      }

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            wenshao
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: