-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPDJsonUtils.h
More file actions
27 lines (22 loc) · 806 Bytes
/
PDJsonUtils.h
File metadata and controls
27 lines (22 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// PDJsonUtils.h
// zedalert
//
// Created by Peter Denniss on 26/10/11.
// Copyright (c) 2011 GO1 Pty Ltd. All rights reserved.
//
#ifndef SITE_URL
#define SITE_URL @""
#endif
#import <Foundation/Foundation.h>
@interface PDJsonUtils : NSObject
+ (NSString *)stringWithUrl:(NSURL *)url;
+ (id) objectWithUrl:(NSURL *)url;
+ (NSDictionary *) downloadJsonDictionaryFromURL:(NSString*)url;
+ (NSArray *) getArrayFromLocalJson:(NSString*) filename;
+ (NSDictionary *) getDictionaryFromLocalJson:(NSString*) filename;
+ (NSArray*) downloadJsonArrayFromURL:(NSString*)url;
+ (NSArray*) downloadJsonArrayFromPath:(NSString*)path;
+ (NSDictionary*) downloadJsonDictionaryFromPath:(NSString*)path;
+ (NSDictionary*) downloadJsonDictionaryFromPath:(NSString*)path withArguments:(NSDictionary*)args;
@end