首页 » Andorid » 安卓例子 » 正文

在线 JSON 转 POJO ,超简单实用

jsonschema2pojo Build Status Maven Central

Current stable: 0.5.1
Current unstable: 1.0.0-beta1

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 1.x, Jackson 2.x or Gson.

Try jsonschema2pojo online
or brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, an Ant task, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how.

A very simple Maven example:


    org.jsonschema2pojo
    jsonschema2pojo-maven-plugin
    0.5.1

        ${basedir}/src/main/resources/schema
        com.example.types




                generate



Useful pages:

Project resources:

Licensed under the Apache License, Version 2.0.

YourKit

Special thanks to YourKit, who support this project through a free license for their full-featured YourKit Java Profiler.

下载 (0)

发表评论