GithubHelp home page GithubHelp logo

cuitymiko / jsontoclass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netyouli/whc-json-to-class

0.0 1.0 0.0 390 KB

javascript版本json自动转换生成对应语言模型类The whc-json-to-class is the javascript plug-in that automatically converts the json string to the corresponding language model class

License: MIT License

JavaScript 100.00%

jsontoclass's Introduction

whc-json-to-class

  • The whc-json-to-class is the javascript plug-in that automatically converts the json string to the corresponding language model class

DEMO

Demo演示 PC版

我的个人网站: www.wuhaichao.com

Require

JavaScript ES6

Support Languages

WHCParserLanguage.Swift

WHCParserLanguage.SwiftClass

WHCParserLanguage.SwiftSexyJson

WHCParserLanguage.SwiftSexyJson

WHCParserLanguage.SwiftSexyJsonClass

WHCParserLanguage.OC

WHCParserLanguage.Java

WHCParserLanguage.CNet

Usage

    ///  例如json生成swift模型类
    ///  For example, json generates the swift model class
    
    let language = WHCParserLanguage.Swift;
    let json_parser = new WHCJsonParser(language);
    let results = json_parser.startParser(json_str);
    

    /// results 是数组,如果生成语言为OC那么results[0]为头文件内容      results[1]为实现类内容
    /// Results is an array, and if the generated language is OC then results[0] is the header file content results[1] for the implementation of the class content

Prompt

The json conversion python and kotlin language models are not currently available and have good Suggestions

Licenses

All source code is licensed under the MIT License.

jsontoclass's People

Contributors

netyouli avatar

Watchers

James Cloos 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.