Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10166

Unnecessary String wrapping when converting to JSON

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.12.Final, 10.0.0.Beta3
    • None
    • None

      A client that requests data in JSON format, does not always get data in JSON format.

      When using listener converters, such as "key-value-with-previous-converter-factory", the server must construct an instance of KeyValueWithPrevious in JSON format, but the resulting output looks like this:

      { _type : 'org.infinispan.commons.util.KeyValueWithPrevious', key : '{"k":"jlisten-modify"}', value : '{"v":"jv1"}', prev : '{"v":"jv0"}' }
      

      The problem here is that key/value/prev are wrapped in '' which makes them String. This wrapping should not be done.

            Unassigned Unassigned
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: