johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JOHNZON-206) toStructure of arrray of JsonObjects serializes JsonObjectImpl like an arbitrary Object
Date Thu, 25 Jul 2019 15:29:00 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Struberg resolved JOHNZON-206.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.13

Hi Alex!

Thanks for the unit test, it should work now!
Will be shipped in 1.1.13.

> toStructure of arrray of JsonObjects serializes JsonObjectImpl like an arbitrary Object
> ---------------------------------------------------------------------------------------
>
>                 Key: JOHNZON-206
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-206
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Mapper
>            Reporter: Alexander Falb
>            Assignee: Mark Struberg
>            Priority: Minor
>             Fix For: 1.1.13
>
>
> I'm not sure this is really a bug or more a feature request/improvement/misunderstanding
on my side.
> Calling toStructure with an javax.json.JsonObject works fine.
>  Calling it with an JsonArray of JsonObjects works fine.
>  Calling it with an java.langObject[]-Array of Objects works fine.
>  Calling it with an Object[]-Array of JsonObjects treats the JsonObjects as arbitrary
Objects resulting in an serialized form of their internals:
> {"integral":true,"valueType":"NUMBER","value":1}
> I would have expected this special treatment of JsonX classes to work on all nesting
levels, not only on the top level. What do you think?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message