Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      now jsonp only support:
      json object -> json string
      json string -> json object

      it should support:
      javabean -> json string
      json string -> java bean

      it's simple use, and good performance.

      like fastjson's api:

      com.alibaba.fastjson.JSON.toJSONString(Object)

      demo:
      https://github.com/AlibabaTech/fastjson/blob/master/src/test/java/com/alibaba/json/demo/Demo2.java

        Activity

        Hide
        jitu added a comment -

        Resolving this one as this is outside the JSR scope

        Show
        jitu added a comment - Resolving this one as this is outside the JSR scope
        Hide
        jitu added a comment -

        This is outside of the current JSR scope. There will be JSON-Binding JSR that would address this usecase

        Show
        jitu added a comment - This is outside of the current JSR scope. There will be JSON-Binding JSR that would address this usecase
        Hide
        wenshao added a comment -

        in the china, fastjson is very popular. it's really fast.

        https://github.com/eishay/jvm-serializers/wiki/Staging-Results

        6 times performance to gson, 2 times performance to jackson, 50 times performance to json-lib.

        it's simple to use:
        String jsonString = JSON.toJSONString(javaBean);
        VO vo = JSON.parseObject("...json string ...", VO.class);

        Show
        wenshao added a comment - in the china, fastjson is very popular. it's really fast. https://github.com/eishay/jvm-serializers/wiki/Staging-Results 6 times performance to gson, 2 times performance to jackson, 50 times performance to json-lib. it's simple to use: String jsonString = JSON.toJSONString(javaBean); VO vo = JSON.parseObject("...json string ...", VO.class);
        Hide
        wenshao added a comment -

        json string -> java bean :

        VO vo = JSON.parseObject("...json string...", VO.class);

        Show
        wenshao added a comment - json string -> java bean : VO vo = JSON.parseObject("...json string...", VO.class);

          People

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

            Dates

            • Created:
              Updated:
              Resolved: