Tweak whitespace for code consistency

This commit is contained in:
Richard Frith-Macdonald 2021-11-29 14:01:13 +00:00
parent eea7d47a77
commit 0950bed43b
2 changed files with 18 additions and 18 deletions

View file

@ -47,18 +47,18 @@ typedef NSUInteger NSJSONReadingOptions;
*/
GS_EXPORT_CLASS
@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;
+ (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

View file

@ -648,7 +648,6 @@ parseObject(ParserState *state)
}
}
return dict;
}
/**
@ -661,9 +660,10 @@ parseValue(ParserState *state)
if (state->error) { return nil; };
c = consumeSpace(state);
// 2.1: A JSON value MUST be an object, array, number, or string, or one of the
// following three literal names:
// false null true
/* 2.1: A JSON value MUST be an object, array, number, or string,
* or one of the following three literal names:
* false null true
*/
switch (c)
{
case (unichar)'"':