On Tue, Feb 12, 2019 at 10:05 AM Hursant B <[email protected]> wrote:
>
> public class ConfigurationEntity{
>     JSONObject config;
> }
>
> example contents of config
>
> {
> "collection":["www.google.com"]
> }
>
> {
> "collection":[{
>             "url":"www.google.com"
>       }]
> }
>
> serializing ConfigurationEntity
>
> sometimes will result config with object collection serialize to string
>
> {
> "collection":[ "{\"url\":\"www.google.com\"}" ]
> }
>
> instead of an object.

I am not sure what the question here is. If the question is why
certain thing gets serialization certain way, you need to include
actual code, as well as declaration of `JSONObject` class (which is
not part of Jackson package).

-+ Tatu +-

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to