Add support for Jackson Java JSON serialization library

XMLWordPrintableJSON

    • Type: Epic
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JSON
    • Support for Jackson Java JSON serialization library
    • None
    • To Do
    • None
    • 0
    • 0
    • 0
    • 100
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Document.toJson() produces jackson-incompatible mongo extended JSON.

      The JSON.serialize method (which produces jackson-compatible JSON) has been deprecated.

      Since Jackson is THE standard Java JSON serialization library... If you are writing such a library for Java, then you should consider making Jackson support a priority.

      Ideally, this would allow us to use a jackson based library to get a MongoCollection<MyJacksonSerializableObject> directly from the mongo drivers.

      The current workaround of getting a MongoCollection<Document>, turning it into Jackson-compatible JSON (via the @deprecated JSON.serialize) and turning that into MyJacksonSerializableObject via an ObjectMapper, though less than ideal, is at least a workable solution. So if the ideal solution is not possible, then please at least include a standard Jackson-compatible JSON serializer.

      Some research to support this feature:

       

              Assignee:
              Unassigned
              Reporter:
              Ralph Jennings
              None
              Votes:
              10 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                None
                None
                None
                None
                None
                None