Skip to content
J

J2s

A macOS app to convert JSON to Swift structs

by zadrFree

#4591in Developer Tools
0In stores

Description

j2s is a small macOS app that converts JSON into Swift structs. You give it a JSON file, and it writes Codable-compliant Swift structs, eith…

Highlights

  • Converts JSON into Codable Swift structs
  • Writes one file or one file per struct
  • Converts snake_case keys to camelCase
  • Recognises ISO 8601 dates, integers and decimals
  • Native macOS app

Ratings & Reviews

No ratings yet

Be the first to rate J2s.

People also visit

S

SwiftyJSONAccelerator

macOS app to generate Swift 5 code for models from JSON (with Codeable)

Developer Tools
Launch
J

JSON Codable

Json Codable is a native macOS app

Developer Tools
Launch
S

Swiftify

Objective-C to Swift code converter and Xcode & Finder extensions

Developer Tools
Launch
S

swift-codable

Implement Swift Codable models for JSON

AI Skills
Get
Q

Quicktype

It's like Uber, but for JSON

Developer Tools
Launch
D

Decode

Converts Xcode Interface Builder files

Developer Tools
Launch

J2s FAQ

What does j2s do?

It converts JSON dictionaries into Swift structs that conform to Codable.

Can it do anything else?

No. The author says it only does this conversion and suggests Sourcery for other needs.

Which Swift version does it need?

The project needs Swift 4 and Xcode 9 or later, and the generated code also targets Swift 4.

How are dates and numbers handled?

ISO 8601 date strings become Date, integers become Int and decimal numbers become Double.

Where is the source?

The project is public on GitHub under the zadr account.

What are the best J2s alternatives?

Popular alternatives to J2s include SwiftyJSONAccelerator, JSON Codable and Swiftify. See all J2s alternatives

Developer Stuff

Badges