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

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

XMLWordPrintable

    • Icon: Component Upgrade Component Upgrade
    • Resolution: Done
    • Icon: Major Major
    • 7.32.0.Final
    • 7.29.0.Final, 7.30.0.Final, 7.31.0.Final
    • kie server
    • None
    • 2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30)
    • 5
    • NEW
    • NEW

      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.

              rhn-support-tkobayas Toshiya Kobayashi
              paranoiabla@gmail.com Petar Tahchiev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: