mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 00:30:49 +00:00
Tweak whitespace for code consistency
This commit is contained in:
parent
eea7d47a77
commit
0950bed43b
2 changed files with 18 additions and 18 deletions
|
@ -47,18 +47,18 @@ typedef NSUInteger NSJSONReadingOptions;
|
||||||
*/
|
*/
|
||||||
GS_EXPORT_CLASS
|
GS_EXPORT_CLASS
|
||||||
@interface NSJSONSerialization : NSObject
|
@interface NSJSONSerialization : NSObject
|
||||||
+ (NSData *)dataWithJSONObject:(id)obj
|
+ (NSData*) dataWithJSONObject: (id)obj
|
||||||
options:(NSJSONWritingOptions)opt
|
options: (NSJSONWritingOptions)opt
|
||||||
error:(NSError **)error;
|
error: (NSError **)error;
|
||||||
+ (BOOL)isValidJSONObject:(id)obj;
|
+ (BOOL) isValidJSONObject: (id)obj;
|
||||||
+ (id)JSONObjectWithData:(NSData *)data
|
+ (id) JSONObjectWithData: (NSData *)data
|
||||||
options:(NSJSONReadingOptions)opt
|
options: (NSJSONReadingOptions)opt
|
||||||
error:(NSError **)error;
|
error: (NSError **)error;
|
||||||
+ (id)JSONObjectWithStream:(NSInputStream *)stream
|
+ (id) JSONObjectWithStream: (NSInputStream *)stream
|
||||||
options:(NSJSONReadingOptions)opt
|
options: (NSJSONReadingOptions)opt
|
||||||
error:(NSError **)error;
|
error: (NSError **)error;
|
||||||
+ (NSInteger)writeJSONObject:(id)obj
|
+ (NSInteger) writeJSONObject: (id)obj
|
||||||
toStream:(NSOutputStream *)stream
|
toStream: (NSOutputStream *)stream
|
||||||
options:(NSJSONWritingOptions)opt
|
options: (NSJSONWritingOptions)opt
|
||||||
error:(NSError **)error;
|
error: (NSError **)error;
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -648,7 +648,6 @@ parseObject(ParserState *state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return dict;
|
return dict;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -661,9 +660,10 @@ parseValue(ParserState *state)
|
||||||
|
|
||||||
if (state->error) { return nil; };
|
if (state->error) { return nil; };
|
||||||
c = consumeSpace(state);
|
c = consumeSpace(state);
|
||||||
// 2.1: A JSON value MUST be an object, array, number, or string, or one of the
|
/* 2.1: A JSON value MUST be an object, array, number, or string,
|
||||||
// following three literal names:
|
* or one of the following three literal names:
|
||||||
// false null true
|
* false null true
|
||||||
|
*/
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
case (unichar)'"':
|
case (unichar)'"':
|
||||||
|
|
Loading…
Reference in a new issue