PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/JSON/JSON.h

http://macfuse.googlecode.com/
C++ Header | 65 lines | 11 code | 8 blank | 46 comment | 0 complexity | 770572441872b9b20ebcacc873e88c36 MD5 | raw file
 1/*
 2 Copyright (C) 2009-2010 Stig Brautaset. All rights reserved.
 3 
 4 Redistribution and use in source and binary forms, with or without
 5 modification, are permitted provided that the following conditions are met:
 6 
 7 * Redistributions of source code must retain the above copyright notice, this
 8   list of conditions and the following disclaimer.
 9 
10 * Redistributions in binary form must reproduce the above copyright notice,
11   this list of conditions and the following disclaimer in the documentation
12   and/or other materials provided with the distribution.
13 
14 * Neither the name of the author nor the names of its contributors may be used
15   to endorse or promote products derived from this software without specific
16   prior written permission.
17 
18 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30/**
31 @mainpage A strict JSON parser and generator for Objective-C
32
33 JSON (JavaScript Object Notation) is a lightweight data-interchange
34 format. This framework provides two apis for parsing and generating
35 JSON. One standard object-based and a higher level api consisting of
36 categories added to existing Objective-C classes.
37
38 This framework does its best to be as strict as possible, both in what it accepts and what it generates. For example, it does not support trailing commas in arrays or objects. Nor does it support embedded comments, or anything else not in the JSON specification. This is considered a feature. 
39  
40 @section Links
41
42 @li <a href="http://stig.github.com/json-framework">Project home page</a>.
43 @li Online version of the <a href="http://stig.github.com/json-framework/api">API documentation</a>. 
44 
45*/
46
47
48// This setting of 1 is best if you copy the source into your project. 
49// The build transforms the 1 to a 0 when building the framework and static lib.
50
51#if 1
52
53#import "SBJsonParser.h"
54#import "SBJsonWriter.h"
55#import "NSObject+SBJSON.h"
56#import "NSString+SBJSON.h"
57
58#else
59
60#import <JSON/SBJsonParser.h>
61#import <JSON/SBJsonWriter.h>
62#import <JSON/NSObject+SBJSON.h>
63#import <JSON/NSString+SBJSON.h>
64
65#endif