JSONFeed alternatives and similar libraries
Based on the "JSON" category.
Alternatively, view JSONFeed alternatives based on common mentions on social networks and blogs.
-
HandyJSON
A handy swift json-object serialization/deserialization library -
AlamofireObjectMapper
An Alamofire extension which converts JSON response data into swift objects using ObjectMapper -
Gloss
[Deprecated] A shiny JSON parsing library in Swift :sparkles: Loved by many from 2015-2021 -
EVReflection
Reflection based (Dictionary, CKRecord, NSManagedObject, Realm, JSON and XML) object mapping with extensions for Alamofire and Moya with RxSwift or ReactiveSwift -
Decodable
[Probably deprecated] Swift 2/3 JSON unmarshalling done (more) right -
JSONHelper
โ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of! -
CodableAlamofire
An extension for Alamofire that converts JSON data into Decodable objects. -
Genome
A simple, type safe, failure driven mapping library for serializing JSON to models in Swift 3.0 (Supports Linux) -
Elevate
Elevate is a JSON parsing framework that leverages Swift to make parsing simple, reliable and composable. -
JSONNeverDie
Auto reflection tool from JSON to Model, user friendly JSON encoder / decoder, aims to never die -
ModelRocket
An iOS framework for creating JSON-based models. Written in Swift. -
Tailor
:necktie:A super fast & convenient object mapper tailored for your needs -
AlamofireJsonToObjects
An Alamofire extension which converts JSON response data into swift objects using EVReflection -
Brick
:droplet: A generic view model for both basic and complex scenarios -
PPJSONSerialization
The Ultimate JSON Serialization for Swift. -
JSONParserSwift
Framework for easily parsing your JSON data directly to Swift object. -
SafeDecoder
A Codable extension to decode arrays and to catch & log all decoding failures
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of JSONFeed or a related project?
README
JSONFeed
Swift parsing for JSON Feed Spec
Installation
Carthage
You can install Carthage with Homebrew using the following command:
brew update
brew install carthage
To integrate JSONFeed into your Xcode project using Carthage, specify it in your Cartfile
where "x.x.x"
is the current release:
github "wesbillman/JSONFeed" "x.x.x"
Swift Package Manager
To install using Swift Package Manager have your Swift package set up, and add JSONFeed as a dependency to your Package.swift
.
dependencies: [
.Package(url: "https://github.com/wesbillman/JSONFeed.git", majorVersion: 0)
]
Manually
Add all the files from JSONFeed/JSONFeed
to your project
Usage
See JSONFeedTests for detailed usage examples
Load a feed from a dictionary
let dictionary = <some feed dictionary>
let feed = try? JSONFeed(json: dictionary)
Load a feed from data
let data = <some feed data>
let feed = try? JSONFeed(data: data)
Load a feed from a json ut8f string
let string = <some utf8 json string>
let feed = try? JSONFeed(string: string)
Reading from a feed via URLSession
Using default configuration and URLSession
let reader = JSONFeedReader()
reader.read(string: "https://jsonfeed.org/feed.json") { (feed, error) in
if let error = error {
//bad things happened
}
if let feed = feed {
//good things happened
}
}
Using custom implemenation of URLSession (example: for unit testing)
let reader = JSONFeedReader(session: SomeCustomURLSession)
reader.read(string: "https://jsonfeed.org/feed.json") { (feed, error) in
if let error = error {
//bad things happened
}
if let feed = feed {
//good things happened
}
}