Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-213

Simplified to/from methods for data conversion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.1.3
    • None
    • Code
    • None

    Description

      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);

      This could be simplified further with the following method additions:

      Bean b = Json.from(string, type);
      String json = Json.to(b);

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamesbognar James Bognar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: