123456789101112131415161718192021222324252627282930313233 |
- //
- // JsonTool.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/11/5.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface JsonTool : NSObject
- /**
- 字典转json字符串
- */
- + (NSString *)convertToJsonData:(NSDictionary *)dict;
- /**
- json转数组
- */
- + (NSArray *)stringToJSON:(NSString *)jsonStr;
- /**
- json转字典
- */
- + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
- /**
- 数组转json
- */
- + (NSString *)arrayToJSONString:(NSArray *)arr;
- @end
- NS_ASSUME_NONNULL_END
|