al
Aeline
2021-03-08 ce4eaddf9eb835f01e6bf5845a063d306f322b24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
//  NSJSONSerialization+BUSafeSerializaiton.h
//  BUFoundation
//
//  Created by bytedance on 2020/10/10.
//  Copyright © 2020 Union. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface NSJSONSerialization (BUSafeSerializaiton)
+ (nonnull NSString *)bu_stringJsonSerializationWithObject:(nullable id)object options:(NSJSONWritingOptions)opt error:(NSError **)error;
+ (nullable NSData *)bu_dataJsonSerializationWithObject:(nullable id)object options:(NSJSONWritingOptions)opt error:(NSError **)error;
@end
 
NS_ASSUME_NONNULL_END