johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Falb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JOHNZON-203) How do I map a Java Bean to javax.json.JsonValue?
Date Wed, 20 Feb 2019 08:59:00 GMT

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

Alexander Falb updated JOHNZON-203:
-----------------------------------
    Description: 
>From what I understand {{org.apache.johnzon.mapper.Mapper}} is ment to map Java Beans
to JSON strings.

Is there a way to map from a Java Bean to a {{javax.json.JsonValue}} and from JsonValue to
a JSON string?

I would need the intermediate JsonValue based structure for further processing before writing
the final JSON string. The only way I'm curently aware of is writing the JSON string and reading
it again with {{javax.json.Json.createReader(new StringReader(jsonString)).readObject()}},
which is ok as a workaround, but not optimal as final solution.

  was:
>From what I understand {{org.apache.johnzon.mapper.Mapper}} is ment to map Java Beans
to JSON strings.

Is there a way to map from a Java Bean to a {{javax.json.JsonValue}} and from JsonValue to
a JSON string?

I would need the intermediate JsonValue based structure for further processing before writing
the final JSON string. The only way I'm curently aware of is writing the JSON string and reading
it again with {{javax.json.Json.createReader(new StringReader(jsonString)).readObject()}},
which is ok as a workaround, but not optimal als final solution.


> How do I map a Java Bean to javax.json.JsonValue?
> -------------------------------------------------
>
>                 Key: JOHNZON-203
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-203
>             Project: Johnzon
>          Issue Type: New Feature
>    Affects Versions: 1.1.11
>            Reporter: Alexander Falb
>            Priority: Major
>
> From what I understand {{org.apache.johnzon.mapper.Mapper}} is ment to map Java Beans
to JSON strings.
> Is there a way to map from a Java Bean to a {{javax.json.JsonValue}} and from JsonValue
to a JSON string?
> I would need the intermediate JsonValue based structure for further processing before
writing the final JSON string. The only way I'm curently aware of is writing the JSON string
and reading it again with {{javax.json.Json.createReader(new StringReader(jsonString)).readObject()}},
which is ok as a workaround, but not optimal as final solution.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message