package atdj
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=e8b9513971f4578d2b0a918323ca10b79008271160d8bdc61b02d43336b7a970
md5=da11b6157d5674e2d27cfd401eb8003a
Description
Atdj is a program that generates a Java interface from type definitions. In particular, given a set of ATD type definitions, this tool generates a set of Java classes representing those types with built-in JSON serializers and deserializers.
The primary benefits of using the generated interface, over manually manipulating JSON strings from within Java, are safety and ease of use. Specifically, the generated interface offers the following features:
-
JSON strings are automatically checked for correctness with respect to the ATD specification.
-
Details such as optional fields and their associated default values are automatically handled.
Published: 27 May 2018
README
README.md
ATD stands for Adaptable Type Definitions. It is a syntax for defining cross-language data types. It is used as input to generate efficient serializers, deserializers and validators. The current target languages are OCaml and Java.
The following opam packages are provided by the atd project:
atdgen: executable that generates OCaml code dealing with JSON and biniou data formats
atdj: executable that generates Java code dealing with JSON
atd: library for parsing atd files used by code generators
The ATD language and its OCaml library were originally designed and implemented at MyLife by Martin Jambon. We distribute the source code under the terms of a BSD license.