Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 83d062418c
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.857 kB
// MBJSONRequest.h
// MBRequest
// Created by Sebastian Celis on 3/4/12.
// Copyright (c) 2012 Mobiata, LLC. All rights reserved.
#import "MBHTTPRequest.h"
// A basic callback for a JSON request that passes back the parsed data and any error that
// may have occurred.
typedef void (^MBRequestJSONCompletionHandler)(id responseJSON, NSError *error);
@interface MBJSONRequest : MBHTTPRequest
// The response data, parsed into a JSON object.
@property (atomic, retain, readonly) id responseJSON;
// Performs a basic request and notifies the caller with any data downloaded.
- (void)performJSONRequest:(NSURLRequest *)request completionHandler:(MBRequestJSONCompletionHandler)completionHandler;
// A basic callback for generic JSON requests.
@property (nonatomic, copy, readonly) MBRequestJSONCompletionHandler JSONCompletionHandler;
Jump to Line
Something went wrong with that request. Please try again.