Description
SwiftyJSONAccelerator is a macOS app that generates Swift 5 model files from JSON. The models use Swift's Codable, so encoding and decoding are handled by the compiler. You can choose optional or non-optional properties, and arrays of objects with different properties are merged into a single model with all of their properties. The generated code is formatted and split into one file per model, which makes the models easy to manage and share. Loading a folder of JSON files together with a config file generates every model in the folder, using the same logic as the command line version. It is the Swift counterpart to the Objective-C JSONAccelerator. To build it, you install SwiftFormat and SwiftLint with Homebrew, or you can download the app as a DMG. The project is MIT licensed and takes contributions through its contributing guide.…
Highlights
- Swift 5 Codable models generated from JSON
- Optional or non-optional properties
- Merges arrays of differing objects into one model
- Folder loading with a .config.json file
Ratings & Reviews
No ratings yet
Be the first to rate SwiftyJSONAccelerator.
People also visit
SwiftyJSONAccelerator FAQ
What does it do?
It generates Swift 5 model files from JSON, using Codable.
Do I need to build it?
No. You can download the DMG for version 2.2.0, or build from source with SwiftFormat and SwiftLint installed through Homebrew.
Can it handle a whole folder?
Yes. Loading a folder of JSON files with a .config.json file generates all the models in it.
Why does macOS block it?
The README says macOS may refuse to open it because it is not checked by Apple, and gives a command to remove the quarantine attribute.
What license is it under?
MIT.
What are the best SwiftyJSONAccelerator alternatives?
Popular alternatives to SwiftyJSONAccelerator include JSON Codable, J2s and Swiftify. See all SwiftyJSONAccelerator alternatives





