123456789101112131415161718 |
- //
- // 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:(id)object options:(NSJSONWritingOptions)opt error:(NSError **)error;
- + (nullable NSData *)bu_dataJsonSerializationWithObject:(id)object options:(NSJSONWritingOptions)opt error:(NSError **)error;
- @end
- NS_ASSUME_NONNULL_END
|