JSON to POJO with duplicate key handling


Keywords
json, pojo
License
GPL-2.0+
Install
npm install json2pojo@0.6.0

Documentation

json2pojo

NPM version Build Status Downloads

JSON to POJO with duplicate key handling, uses jsonschema2pojo(http://jsonschema2pojo.org/) to do the schema to POJO code generation.

Install:

npm install -g json2pojo

Usage:

json2pojo API -p com.example

For generate POJO from the following json:

# API
GET https://api.github.com/users/nodejs/repos Repo
GET https://api.github.com/repos/nodejs/node/branches Branch

Generated POJO(under com.example package):

Branch.java  Commit.java  Owner.java  Repo.java