summaryrefslogtreecommitdiffstats
path: root/Classes/Source/Experimental/CJSONSerialization.h
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-25 02:21:36 -0400
committermatt handler <matt.handler@gmail.com>2011-04-25 02:21:36 -0400
commitab0c357216564967ccbb900923ead3830a13752b (patch)
tree1b3aa223efb245d47b9c6ba785d2db4e911fd62a /Classes/Source/Experimental/CJSONSerialization.h
parent0c7a7586d3c2ab22adb15f032b0a69c962aaeeaf (diff)
downloadpiccast-app-ab0c357216564967ccbb900923ead3830a13752b.tar.gz
piccast-app-ab0c357216564967ccbb900923ead3830a13752b.zip
added json stuff, sources are loading but not connected to any sensical database or nothing... coming together. next hard bit is going to be the animation when things update
Diffstat (limited to 'Classes/Source/Experimental/CJSONSerialization.h')
-rw-r--r--Classes/Source/Experimental/CJSONSerialization.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/Classes/Source/Experimental/CJSONSerialization.h b/Classes/Source/Experimental/CJSONSerialization.h
new file mode 100644
index 0000000..83c9bb2
--- /dev/null
+++ b/Classes/Source/Experimental/CJSONSerialization.h
@@ -0,0 +1,34 @@
+//
+// CJSONSerialization.h
+// TouchJSON
+//
+// Created by Jonathan Wight on 03/04/11.
+// Copyright 2011 toxicsoftware.com. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+enum {
+ kCJSONReadingMutableContainers = 0x1,
+ kCJSONReadingMutableLeaves = 0x2,
+ kCJSONReadingAllowFragments = 0x04,
+};
+typedef NSUInteger EJSONReadingOptions;
+
+enum {
+ kCJJSONWritingPrettyPrinted = 0x1
+};
+typedef NSUInteger EJSONWritingOptions;
+
+
+@interface CJSONSerialization : NSObject {
+
+}
+
++ (BOOL)isValidJSONObject:(id)obj;
++ (NSData *)dataWithJSONObject:(id)obj options:(EJSONWritingOptions)opt error:(NSError **)error;
++ (id)JSONObjectWithData:(NSData *)data options:(EJSONReadingOptions)opt error:(NSError **)error;
++ (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(EJSONWritingOptions)opt error:(NSError **)error;
++ (id)JSONObjectWithStream:(NSInputStream *)stream options:(EJSONReadingOptions)opt error:(NSError **)error;
+
+@end