Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 715 Bytes

File metadata and controls

19 lines (14 loc) · 715 Bytes

JSweet Model/DTO JSON deserialization + async / await

Sample code showing how to properly deserialize JSON data (retrieved with fetch) to plain Java model / DTO objects. It is worth noting the usage of the async / await idiom with JSweet along with the fetch API

Usage

> git clone https://github.com/lgrignon/jsweet-model-dto-json-deserialization.git
> cd jsweet-model-dto-json-deserialization
> mvn generate-sources
> firefox www/index.html

Prerequisites