Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4872

"customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions

    Details

    • Type: Component Upgrade
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.29.0.Final, 7.30.0.Final, 7.31.0.Final
    • Fix Version/s: 7.32.0.Final
    • Component/s: kie server
    • Labels:
      None
    • Sprint:
      2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30)
    • Story Points:
      5
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Hello,
      as discussed here:

      https://groups.google.com/forum/#!topic/drools-setup/85k05vo0Ix8

      I'm trying to configure the JSONMarshaller so I can serialize/deserialize objects of type javax.money.MonetaryAmount, however even though I register my own JSONMarshallerExtension seems like the conversion is handled by the customSerializationMapper in JSONMarshaller.configureMarshaller() and this mapper is not passed to the extension so there's no way I can configure it. This leads to the attributes of type MonetaryAmount being serialized in a wrong way (not using any modules registered through the JSONMarshallerExtension.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tkobayashi Toshiya Kobayashi
                Reporter:
                paranoiabla Petar Tahchiev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: