You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2022/06/24 19:16:00 UTC

[jira] [Closed] (JUNEAU-213) Simplified to/from methods for data conversion

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

James Bognar closed JUNEAU-213.
-------------------------------
    Resolution: Fixed

Implemented in 9.0.0

> Simplified to/from methods for data conversion
> ----------------------------------------------
>
>                 Key: JUNEAU-213
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-213
>             Project: Juneau
>          Issue Type: Improvement
>          Components: Code
>    Affects Versions: 8.1.3
>            Reporter: James Bognar
>            Priority: Major
>
> Currently you can convert to and from various languages using the following code:
> {code:java}
> Bean b = Json.DEFAULT.read(string, type);
> String json = Json.DEFAULT.write(b);{code}
> This could be simplified further with the following method additions:
> {code:java}
> Bean b = Json.from(string, type);
> String json = Json.to(b);{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)