/jsweet-async-await-json-deserialization

Sample code showing how to properly deserialize JSON data (retrieved with async/await + fetch) to plain Java model / DTO objects

Primary LanguageJavaApache License 2.0Apache-2.0

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