Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. iOS 字典转json字符串

iOS 字典转json字符串

  • Post author:xfxia
  • Post published:2023年8月26日
  • Post category:其他


NSDictionary *param = @{@"key1":@"value1",@"key2":@"value2"};
NSError *parseError = nil;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:param options:NSJSONWritingPrettyPrinted error:&parseError];
    NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];

转载于:https://www.cnblogs.com/damiao/p/5158176.html


你可能也喜欢

mybatis流式查询数据

【目标跟踪系列】SiamRpn卷积流程以及代码

深入理解Windows操作系统机制(二)

Jenkins安装与配置

ESD门禁管理系统方案

习题8-6 删除字符 (20分)

微服务调用组件Feign

解决线上概率性异常 TransactionTooLargeException

deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

检查 raw.githubusercontent.com 中是否有拼写错误

数据库系统的三级模式结构与二级映像

ubuntu截屏工具

微服务系列:Sentinel 之 @SentinelResource 注解配置

proto3默认值与可选项

springboot 知识点

async/await以及js中的微任务和宏任务

RestTemplate使用详解

Superset集成ECharts(一重奏)

微型计算机中内存比外存存储容量大吗,内存容量一般比外存容量大吗

大学生操作系统题库

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单