GithubHelp home page GithubHelp logo

drainlin / jsonexport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evoios/pzjsonexport

0.0 0.0 0.0 716 KB

MJExtension 模型自动转换工具,根据 json 文件自动生成模型

Ruby 0.56% Objective-C 51.60% Swift 47.85%

jsonexport's Introduction

修改说明

由于项目中不得不使用MJExtension,又不想自己一个字一个字写model,于是发现这款软件挺方便的就魔改了一下

  • 新增了与关键字冲突后的自定义后缀
  • 修复了copyright的问题,调整了适合国人的日期显示
  • 新增了小驼峰法与蛇形法的互转,默认为json的键命名属性
  • 修复了一些小问题,汉化了一些词

最后感谢原作者们,不想自己打包编译的可以去release下载编译好的执行文件即可。

预览图:

screeenshort

以下是原README


PZJsonExport

这是什么

PZJsonExport 是由自动生成 MJExtension 模型的 mac app,告别手写模型属性痛苦。

example

注:

PZJsonExport 由 JSONExport 魔改出来的,界面和 JSONExport 一样,部分代码也是直接从 JSONExport 贴过来的。

为什么不用 JSONExport

1.因为 JSONExport 没有生成 MJExtension 模型的方法。

2.如果使用的话,需要去手动映射。

功能

  • 自动映射数组中的字典。如, .h 中 NSArray <AClass *> *bClass, 在对应的 .m BClass 里,自动提供映射方法 + (NSDictionary *)objectClassInArray.
  • 关键字替换,会在关键字属性后面添加 Field 字符串.
  • 可以修改类前缀,同 JSONExport.
  • 下划线转驼峰
  • 首字母大写转小写

使用

直接复制 json 到 input json 窗口就可以了。

感谢

感谢 JSONExport

协议

MIT

jsonexport's People

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.