Giter VIP home page Giter VIP logo

generatejsontojavabean's Introduction

generateJsonToJavaBean

  • 根据接口自动生成 java bean
generate_java.py --h
usage: generate_java.py [-h]
                        [--json CONTENT]
                        [--className CLASSNAME]
                        [--outPath OUTPATH]
                        [--package PACKAGE]
                        [--outType OUTTYPE]

optional arguments:
  -h, --help            show this help message and exit
  --url URL             parsed json url [disabled]
  --json jsonContent    parsed json content
  --className CLASSNAME
                        specify root class name
  --outPath OUTPATH     Automatic generation of storage file path ,default
                        current path.
  --package PACKAGE     Generating the .java file class package name
  --outType OUTTYPE     1: parser 2:Gson
  • 实例
[disabled] generate_java.py --url "http://api.budejie.com/api/api_open.php?market=360zhushou&order=repost&maxid=&udid=A0000044BEC447&a=list&c=data&os=4.2.2&client=android&page=1&per=10&visiting=&type=&time=week&mac=40%3A0E%3A85%3A1D%3A43%3AAE&ver=4.2.3" --className Test

generate_java.py --json "{}" --className Test

or

./json2bean jsonFile Test

generatejsontojavabean's People

Contributors

hayukleung avatar wuzhenlin135 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.