declare namespace ObjC{ namespace classes{ export class NSJSONSerialization extends NSObject{ static isValidJSONObject_(obj:NSObject|NativePointer):number; static dataWithJSONObject_options_error_(obj:NSObject|NativePointer,opt:number|NativePointer,error:NSError|NativePointer):NSData; static JSONObjectWithData_options_error_(data:NSData|NativePointer,opt:number|NativePointer,error:NSError|NativePointer):NSObject; static writeJSONObject_toStream_options_error_(obj:NSObject|NativePointer,stream:NSOutputStream|NativePointer,opt:number|NativePointer,error:NSError|NativePointer):number; static JSONObjectWithStream_options_error_(stream:NSInputStream|NativePointer,opt:number|NativePointer,error:NSError|NativePointer):NSObject; } } }