lgrignon / 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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Apache License 2.0


Languages

Language:Java 91.7%Language:HTML 8.3%