juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-213) Simplified to/from methods for data conversion
Date Sat, 04 Apr 2020 13:43:00 GMT
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:
Bean b = Json.DEFAULT.read(string, type);
String json = Json.DEFAULT.write(b);{code}
This could be simplified further with the following method additions:
Bean b = Json.from(string, type);
String json = Json.to(b);{code}

This message was sent by Atlassian Jira

View raw message