sudha
sudha

Reputation: 159

Is there any way to bundle JSON files to Jar file?

Is there any way to bundle JSON files to Jar file? For example we are using maven-jaxb2-plugin for creating jar from xsd. In similar way i need for Json files. Please help

Upvotes: 0

Views: 2943

Answers (1)

Stanislav
Stanislav

Reputation: 28126

You can try jsonschema2pojo Gradle plugin. According to it's description:

jsonschema2pojo generates a Java representation of your json schema. The schema reference describes the rules and their effect on generated Java types.

Upvotes: 1

Related Questions