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 2020/04/04 13:43:00 UTC
[jira] [Created] (JUNEAU-213) Simplified to/from methods for data
conversion
James Bognar created JUNEAU-213:
-----------------------------------
Summary: 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
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.3.4#803005)