OFBiz
  1. OFBiz
  2. OFBIZ-4572

Migration from json-lib to jackson

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: None
    • 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

        Activity

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

        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 !

          People

          • Assignee:
            Unassigned
            Reporter:
            Erwan de FERRIERES
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development