Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insanoid/SwiftyJSONAccelerator
macOS app to generate Swift 5 code for models from JSON (with Codeable)
https://github.com/insanoid/SwiftyJSONAccelerator
codeable hacktoberfest json json-files json-generator marshalling swift swift5
Last synced: about 1 month ago
JSON representation
macOS app to generate Swift 5 code for models from JSON (with Codeable)
- Host: GitHub
- URL: https://github.com/insanoid/SwiftyJSONAccelerator
- Owner: insanoid
- License: mit
- Created: 2015-10-16T20:02:09.000Z (about 9 years ago)
- Default Branch: dev
- Last Pushed: 2023-04-19T05:09:56.000Z (over 1 year ago)
- Last Synced: 2024-08-18T16:35:54.589Z (5 months ago)
- Topics: codeable, hacktoberfest, json, json-files, json-generator, marshalling, swift, swift5
- Language: Swift
- Homepage:
- Size: 4.37 MB
- Stars: 947
- Watchers: 40
- Forks: 122
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ios - SwiftyJSONAccelerator - Generate Swift 5 model files from JSON with Codeable support. (Parsing / JSON)
- awesome-swift - SwiftyJSONAccelerator - macOS app to generate Swift 5 models for JSON (with Codeable). (Libs / Data Management)
- awesome-swift - SwiftyJSONAccelerator - Generate Swift 5 model files from JSON with Codeable support. (JSON/XML Manipulation)
- awesome-swift - SwiftyJSONAccelerator - macOS app to generate Swift 5 models for JSON (with Codeable). (Libs / Data Management)
- fucking-awesome-swift - SwiftyJSONAccelerator - macOS app to generate Swift 5 models for JSON (with Codeable). (Libs / Data Management)
- awesome-ios-star - SwiftyJSONAccelerator - Generate Swift 5 model files from JSON with Codeable support. (Parsing / JSON)
- awesome-swift - SwiftyJSONAccelerator - macOS app to generate Swift 5 code for models from JSON (with Codeable) ` 📝 2 years ago` (Data Management [🔝](#readme))
README
![Logo](https://raw.githubusercontent.com/insanoid/SwiftyJSONAccelerator/master/SwiftyJSONAccelerator/Support/Assets.xcassets/AppIcon.appiconset/Icon_32x32%402x.png)
# SwiftyJSONAccelerator - MacOS app `Codeable` Model file Generator For Swift 5
[![Build
Status](https://travis-ci.org/insanoid/SwiftyJSONAccelerator.svg?branch=master)](https://travis-ci.org/insanoid/SwiftyJSONAccelerator)
![codecov](https://codecov.io/gh/insanoid/SwiftyJSONAccelerator/branch/master/graph/badge.svg)## Installing & Building
- **Building:**
```
pod install
```You will also need to install `SwiftFormat` with `brew install swiftformat` and `SwiftLint` with `brew install swiftlint`.
- **Download dmg:** [Download the .app (v2.2.0)](https://github.com/insanoid/SwiftyJSONAccelerator/releases/download/v2.2.0/SwiftyJSONAccelerator.app.zip)
## Common Issues
- **`SwiftyJSONAccelerator` can't be opened because Apple cannot check it for malicious software.**: Run the following command `xattr -d com.apple.quarantine `.
## Features
![Logo](https://github.com/insanoid/SwiftyJSONAccelerator/blob/master/preview.png)
A Swift model generator like the Objective-C [JSONAccelerator](http://nerdery.com/json-accelerator). Formats and generates models for the given JSON and also breaks them into files making it easy to manage and share between several models.
- The models that are generated depend Swift's inbuilt `Codeable` feature making encoding and decoding objects a thing of the past.
- Allows to opt for either optional or non-optional variables.
- Allows an array of a certain object type with different properties to be merged into a single model with all properties.
- Click `Load folder with JSON files + Config` to generate all possible models for given folder with JSON files, note this needs a `.config.json` as this uses the CLI logic internally.## Contributions and Requests
Any suggestions regarding code quality of the app, generated code's quality, Swift related improvements and pull requests are all very welcome. Please make sure you submit the pull request to the next release branch and not the master branch.
- [Contributing Guidelines](.github/contributing.md)
- [Code of Conduct](.github/CODE_OF_CONDUCT.md)
- [MIT License](LICENSE.md) / [Karthikeya Udupa](https://karthikeya.co.uk)