Latest 1.0.0
Homepage https://github.com/DreamingInBinary/JSONFeed
License MIT
Platforms ios 10.0
Authors

JSONFeed

A dead simple JSONFeed parser with only one method you need to worry about.


This is a no bells and whistles JSONFeed parser. To use it, provide a url to a JSONFeed:

[JSONFeedParser jsonFeedFromURL:[NSURL URLWithString:@"https://jsonfeed.org/feed.json"] completion:^ (NSError *error, JSONFeed *feed) {
    //Either an error or a JSONFeed object. Always returns on the main queue.
}];

Installation

It’s on Cocoapods, which is the easiet way to go.

pod 'JSONFeedParser'

To manually get it done, just drag in the JSONFeed folder into your project.

Usage

To use it, just import JSONFeed.h and use the method listed above. All the models in the project mirror the JSONFeed Spec, and their nullability reflect the specfification as well (i.e. optional objects are marked _Nullable and required objects use _Nonnull).

All top level members are properties on a JSONFeed object, whereas the actual items are in its items property:

jsonFeedInstance.items //All of the feed items

Misc

This spec is new, so not all of the feeds may be valid. There are no fancy assumptions happening here, if the feed is to spec – it’ll work great. If some parts aren’t, some properties will either be nil or have a default value according to their nullability.

If you have any questions, feel free to give me a shout on Twitter – and hey, I hope this helps out or saves someone time!

Latest podspec

{
    "name": "JSONFeedParser",
    "version": "1.0.0",
    "summary": "A dead simple JSONFeed parser in Objective-C.",
    "description": "A JSONFeed parser with only one method you need to worry about. Easy peezy.",
    "homepage": "https://github.com/DreamingInBinary/JSONFeed",
    "license": "MIT",
    "authors": {
        "Jordan Morgan": "[email protected]"
    },
    "social_media_url": "http://twitter.com/JordanMorgan10",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/DreamingInBinary/JSONFeed.git",
        "tag": "v1.0"
    },
    "source_files": [
        "Classes",
        "JSONFeedParser/JSONFeed/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This