blob: efe9d9fe0acd4ef1ad72c389d77c71c3149749ab (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ Parsed from Foundation.framework NSJSONSerialization.h }
{$ifdef TYPES}
type
NSJSONSerializationPtr = ^NSJSONSerialization;
{$endif}
{$ifdef TYPES}
type
NSJSONReadingOptions = NSUInteger;
NSJSONReadingOptionsPtr = ^NSJSONReadingOptions;
const
NSJSONReadingMutableContainers = 1 shl 0;
NSJSONReadingMutableLeaves = 1 shl 1;
NSJSONReadingAllowFragments = 1 shl 2;
type
NSJSONWritingOptions = NSUInteger;
NSJSONWritingOptionsPtr = ^NSJSONWritingOptions;
const
NSJSONWritingPrettyPrinted = 1 shl 0;
{$endif}
{$ifdef CLASSES}
type
NSJSONSerialization = objcclass external (NSObject)
private
reserved:array[0..5] of pointer;
public
class function isValidJSONObject (obj: id): ObjCBOOL; message 'isValidJSONObject:';
class function dataWithJSONObject_options_error (obj: id; opt: NSJSONWritingOptions; error: NSErrorPtr): NSData; message 'dataWithJSONObject:options:error:';
class function JSONObjectWithData_options_error (data: NSData; opt: NSJSONReadingOptions; error: NSErrorPtr): id; message 'JSONObjectWithData:options:error:';
class function writeJSONObject_toStream_options_error (obj: id; stream: NSOutputStream; opt: NSJSONWritingOptions; error: NSErrorPtr): NSInteger; message 'writeJSONObject:toStream:options:error:';
class function JSONObjectWithStream_options_error (stream: NSInputStream; opt: NSJSONReadingOptions; error: NSErrorPtr): id; message 'JSONObjectWithStream:options:error:';
end;
{$endif}
|