All Projects → netyouli → whc-json-to-class

netyouli / whc-json-to-class

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

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to whc-json-to-class

format-to-json
An algorithm that can format a string to json-like template. 字符串JSON格式化的算法。
Stars: ✭ 30 (+25%)
Mutual labels:  json-api, json-parser
Whc model
iOS平台高效转换引擎json->model,model->json,model->Dictionary,支持模型类继承其他模型类,支持指定路径转换,不区分json的key和模型属性名称大小写,自动处理json中null
Stars: ✭ 244 (+916.67%)
Mutual labels:  model, json-parser
Coolie
Coolie(苦力) helps you to create models (& their constructors) from a JSON file.
Stars: ✭ 508 (+2016.67%)
Mutual labels:  model, json-parser
groq-cli
Run GROQ in your command line
Stars: ✭ 139 (+479.17%)
Mutual labels:  json-api, json-parser
Dictfier
Python library to convert/serialize class instances(Objects) both flat and nested into a dictionary data structure. It's very useful in converting Python Objects into JSON format
Stars: ✭ 67 (+179.17%)
Mutual labels:  json-api, json-parser
Mojojson
A simple and fast JSON parser.
Stars: ✭ 271 (+1029.17%)
Mutual labels:  json-api, json-parser
json
a portable, powerful and pure functional JSON library for Scheme
Stars: ✭ 40 (+66.67%)
Mutual labels:  json-api, json-parser
xijs
A business - oriented scene Js Library
Stars: ✭ 91 (+279.17%)
Mutual labels:  json-api, json-parser
JSONinSV
JSON lib in Systemverilog
Stars: ✭ 25 (+4.17%)
Mutual labels:  json-api, json-parser
opendev
OpenDev is a non-profit project that tries to collect as many resources (assets) of free use for the development of video games and applications.
Stars: ✭ 34 (+41.67%)
Mutual labels:  model
app
Quick start JSON API application
Stars: ✭ 80 (+233.33%)
Mutual labels:  json-api
FirebaseJson
🗃 JSON parser and builder for ESP8266, ESP32, Teensy3.x and Teensy4.x, SAM, SAMD and STM32 (128 k flash or more)
Stars: ✭ 29 (+20.83%)
Mutual labels:  json-parser
refuel
Lightweight dependency injection engine and DI-driven tools.
Stars: ✭ 21 (-12.5%)
Mutual labels:  json-parser
laravel-loggable
🎥 📽 🎞 Log your model changes in multiple ways
Stars: ✭ 58 (+141.67%)
Mutual labels:  model
jsonapi
Set of tools to build a JSON:API compliant service.
Stars: ✭ 19 (-20.83%)
Mutual labels:  json-api
lurch
A simple Ruby JSON API client.
Stars: ✭ 15 (-37.5%)
Mutual labels:  json-api
ctuning-programs
Collective Knowledge extension with unified and customizable benchmarks (with extensible JSON meta information) to be easily integrated with customizable and portable Collective Knowledge workflows. You can easily compile and run these benchmarks using different compilers, environments, hardware and OS (Linux, MacOS, Windows, Android). More info:
Stars: ✭ 41 (+70.83%)
Mutual labels:  json-api
json-parser
🌐 A JSON lexer and parser built according to the official ECMA-404 JSON Data Interchange Standard
Stars: ✭ 24 (+0%)
Mutual labels:  json-parser
w3c-api
The W3C API
Stars: ✭ 130 (+441.67%)
Mutual labels:  json-api
laravel-geoly
Perform fast and efficient radius searches on your Laravel Eloquent models.
Stars: ✭ 25 (+4.17%)
Mutual labels:  model

whc-json-to-class

Build Status Node version License

  • 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版

Require

JavaScript ES6+

Support Languages

WHCParserLanguage.Dart

WHCParserLanguage.Swift

WHCParserLanguage.SwiftClass

WHCParserLanguage.SwiftSexyJson

WHCParserLanguage.SwiftSexyJson

WHCParserLanguage.SwiftSexyJsonClass

WHCParserLanguage.OC

WHCParserLanguage.Java

WHCParserLanguage.CNet

Usage

npm install -g whc-json-to-class

 use whc-json-to-class.js
 use whc-json-to-class.min.js
    ///  例如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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].