Skip to content

haydump/objcJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objcJSON

Simple SwiftyJSON written in pure Objective C

Basic main functions are there : subscript notation, type inference.

Usage like

JSONresponse[@"data"][@"weather"][0][@"weatherIconUrl"][0][@"value"]

is valid without crashing and multiple checking at each layer of response object.

Installation

Add JSON.h+m into your project.

Usage

Example

#import "JSON.h"

[... success:^(AFHTTPRequestOperation *operation, id responseObject) {
    JSON * JSONresponse = [[JSON alloc] initWithJSONobject:responseObject];
    NSLog(@"%@",JSONresponse.description);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
    NSLog(@"Error: %@", error);
}];

About

Simple SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON) written in pure Objective C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published