[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:01 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729343#comment-13729343 ] 

Galder Zamarreño commented on ISPN-10166:
-----------------------------------------

For reference, the JSON above should look like:

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

> 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
>            Priority: Major
>
> 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