[infinispan-issues] [JBoss JIRA] (ISPN-10166) Unnecessary String wrapping when converting to JSON

Galder Zamarreño (Jira) issues at jboss.org
Fri May 3 02:40:00 EDT 2019


Galder Zamarreño created ISPN-10166:
---------------------------------------

             Summary: Unnecessary String wrapping when converting to JSON
                 Key: ISPN-10166
                 URL: https://issues.jboss.org/browse/ISPN-10166
             Project: Infinispan
          Issue Type: Bug
    Affects Versions: 9.4.12.Final
            Reporter: Galder Zamarreño
            Assignee: Gustavo Fernandes


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:

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

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



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the infinispan-issues mailing list