00001 // 00002 // NSObject+YAJL.h 00003 // YAJL 00004 // 00005 // Created by Gabriel Handford on 7/23/09. 00006 // Copyright 2009. All rights reserved. 00007 // 00008 // Permission is hereby granted, free of charge, to any person 00009 // obtaining a copy of this software and associated documentation 00010 // files (the "Software"), to deal in the Software without 00011 // restriction, including without limitation the rights to use, 00012 // copy, modify, merge, publish, distribute, sublicense, and/or sell 00013 // copies of the Software, and to permit persons to whom the 00014 // Software is furnished to do so, subject to the following 00015 // conditions: 00016 // 00017 // The above copyright notice and this permission notice shall be 00018 // included in all copies or substantial portions of the Software. 00019 // 00020 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00021 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00022 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00023 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00024 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00025 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00026 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00027 // OTHER DEALINGS IN THE SOFTWARE. 00028 // 00029 00030 #import "YAJLGen.h" 00031 #import "YAJLParser.h" 00032 00059 @interface NSObject(YAJL) 00060 00061 #pragma mark Gen 00062 00070 - (NSString *)yajl_JSONString; 00071 00086 - (NSString *)yajl_JSONStringWithOptions:(YAJLGenOptions)options indentString:(NSString *)indentString; 00087 00088 00089 #pragma mark Parsing 00090 00105 - (id)yajl_JSON; 00106 00125 - (id)yajl_JSON:(NSError **)error; 00126 00151 - (id)yajl_JSONWithOptions:(YAJLParserOptions)options error:(NSError **)error; 00152 00153 @end 00154