Generate Swift struct from json string
Jsonify is an Xcode Source Editor extension that makes it easy to generate Swift struct from json string.
- ⚒ Generate Swift struct from json string
- ⚒ Initializing properties with default values
- ⚒ Allowing properties to be nullable(?). Determining property nullability automatically
- ⚒ Renaming property names to be camelCase style when selecting a target JSON lib annotation.
- ⚒ Generating Swift struct as individual struct. Generating Swift struct as inner struct.
- ⚡️ Fast, tested, secure.
- Download latest Jsonify package from the Releases.
- Copy Jsonify to your Applications folder.
- Launch Jsonify once. You can close it immediately afterwards.
- Go to System Preferences > Extensions > Xcode Source Editor > select Jsonify
- Type: 'let' or 'var'
- Coding key: add coding key to struct declaration
- Override selection: override struct generated over selection source
- Default value: additional default for properties
- Open Xcode
- Go to Xcode > Preferences > Key Bindings
- Type 'Jsonify' in search field
- Assign ⌃ + J to Jsonify command
Pull requests, issues and suggestions are warmly welcome.
Feel free to contact me @MrDev on Twitter.