A high-performance JSON deserialization library for Swift with a clean, type-safe API.
JASON is a Swift library for fast and type-safe JSON deserialization. It provides a clean API for parsing JSON data with optional and non-optional type casting, reducing boilerplate code and improving app performance when dealing with large datasets. It is designed as a high-performance alternative to native Swift JSON handling.
iOS, macOS, tvOS, and watchOS developers who need efficient JSON parsing in their Swift applications, particularly those working with network APIs and large data payloads.
Developers choose JASON for its benchmarked speed, elegant API, and type-safe features like JSONKey, which enhance code clarity and safety. Its seamless integration with Alamofire and Moya makes it a convenient choice for modern Swift networking stacks.
Fast JSON parsing for Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarked as very fast for JSON deserialization, optimizing app performance with large datasets, as evidenced by the dedicated benchmarks folder.
Offers optional and non-optional type-casting properties like .string and .intValue with default values, ensuring safe parsing and reducing runtime errors.
JSONKey support enables statically-typed key definitions for path-based access, providing compile-time checks and cleaner code, as shown in the example.
Includes extensions for Alamofire and Moya, simplifying JSON handling in network requests and reducing boilerplate, with ready-to-use response methods.
Requires explicit model initialization in Swift, unlike Codable's automatic synthesis, increasing development time and code volume for each model.
Limited to Swift projects on iOS, macOS, tvOS, and watchOS, making it unsuitable for cross-platform or non-Apple environments.
Primarily designed for parsing JSON into objects, with no built-in support for encoding Swift objects back to JSON, as noted in the feature list.