Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Processing CEDAR Template Instances

Martin O'Connor edited this page Oct 10, 2016 · 5 revisions

Since CEDAR templates are defined using JSON Schema we can use code-generation tools to produce readers and writers for those instances. This approach can obviate the need to directly process CEDAR metadata instances at the JSON level.

jsonschema2pojo is one of most popular JSON Schema-based code generation tools for Java. It produces Java classes from JSON Schema documents that can be used to read and write instances conforming to that schema.

Reading CEDAR Instances

An example project that shows how this library can be used to read CEDAR template instances can be found here.

Writing CEDAR Instances

A project that shows the analogous process for writing CEDAR templates instances can be found here.

Equivalent code generation tools can be used in languages other than Java.

Clone this wiki locally