![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/GNUstep/Foundation/ |
Upload File : |
#import "Foundation/NSObject.h" @class NSData; @class NSError; @class NSInputStream; @class NSOutputStream; enum { /** * Collection classes created from reading a JSON stream will be mutable. */ NSJSONReadingMutableContainers = (1UL << 0), /** * Strings in a JSON tree will be mutable. */ NSJSONReadingMutableLeaves = (1UL << 1), /** * The parser will read a single value, not just a */ NSJSONReadingAllowFragments = (1UL << 2) }; enum { /** * When writing JSON, produce indented output intended for humans to read. * If this is not set, then the writer will not generate any superfluous * whitespace, producing space-efficient but not very human-friendly JSON. */ NSJSONWritingPrettyPrinted = (1UL << 0) }; /** * A bitmask containing flags from the NSJSONWriting* set, specifying options * to use when writing JSON. */ typedef NSUInteger NSJSONWritingOptions; /** * A bitmask containing flags from the NSJSONReading* set, specifying options * to use when reading JSON. */ typedef NSUInteger NSJSONReadingOptions; /** * NSJSONSerialization implements serializing and deserializing acyclic object * graphs in JSON. */ @interface NSJSONSerialization : NSObject + (NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error; + (BOOL)isValidJSONObject:(id)obj; + (id)JSONObjectWithData:(NSData *)data options:(NSJSONReadingOptions)opt error:(NSError **)error; + (id)JSONObjectWithStream:(NSInputStream *)stream options:(NSJSONReadingOptions)opt error:(NSError **)error; + (NSInteger)writeJSONObject:(id)obj toStream:(NSOutputStream *)stream options:(NSJSONWritingOptions)opt error:(NSError **)error; @end