OFBiz
  1. OFBiz
  2. OFBIZ-4572

Migration from json-lib to jackson

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01
    • Component/s: framework
    • Labels:
      None

      Description

      According to various benchmarks, json-lib, based on the json.org implementation, is one of the slowest implementation for json parsing. Moreover, this project hasn't been updated since 2010-12-14 (latest release), and activity on the user mailing-list is empty.

      I found jackson, which seems to be a lot faster, and activity is bigger, with a lot of releases (next to monthly).

      Here are some links:
      benchmark: https://github.com/eishay/jvm-serializers/wiki/
      Update on State of Json-parsing Performance: http://www.cowtowncoder.com/blog/archives/2009/02/entry_204.html
      Upgrade from org.json to Jackson, piece by piece, using jackson-module-org-json: http://www.cowtowncoder.com/blog/archives/2011/03/entry_447.html
      project's documentation: http://wiki.fasterxml.com/JacksonDocumentation

        Issue Links

          Activity

          Hide
          Jacopo Cappellato added a comment -

          Rev. 1635901

          Show
          Jacopo Cappellato added a comment - Rev. 1635901
          Hide
          Erwan de FERRIERES added a comment -

          Nothing has come out yet. Any help is still appreciated !

          Show
          Erwan de FERRIERES added a comment - Nothing has come out yet. Any help is still appreciated !
          Hide
          Wai added a comment -

          I was wondering if anything is coming out of this. Is ofbiz staying with XStream or would Jackson be a good substitute or can both be used?

          Show
          Wai added a comment - I was wondering if anything is coming out of this. Is ofbiz staying with XStream or would Jackson be a good substitute or can both be used?
          Hide
          Erwan de FERRIERES added a comment -

          Hi Adrian,

          no, I haven't.

          Reading from here, http://xstream.codehaus.org/json-tutorial.html, it seems that xstream is more oriented XML, and not pure JSON, or we need to use the jettison interface.

          Show
          Erwan de FERRIERES added a comment - Hi Adrian, no, I haven't. Reading from here, http://xstream.codehaus.org/json-tutorial.html , it seems that xstream is more oriented XML, and not pure JSON, or we need to use the jettison interface.
          Hide
          Adrian Crum added a comment -

          Erwan,

          We already have the XStream library that does JSON parsing. Have you looked into that?

          Show
          Adrian Crum added a comment - Erwan, We already have the XStream library that does JSON parsing. Have you looked into that?

            People

            • Assignee:
              Jacopo Cappellato
              Reporter:
              Erwan de FERRIERES
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development