flutter开发Uint8List转字符串,Map与json字符串相互转换
json
适用于现代 C++ 的 JSON。
项目地址:https://gitcode.com/gh_mirrors/js/json

·
1、Uint8List解码字符串
data是List<int>类型
String str = utf8.decode(data);
2、字符串转Uint8List
Uint8List data = body.codeUnits;
3、Map与json字符串相互转换
Map map = jsonDecode(str);
String str = jsonEncode(map);




适用于现代 C++ 的 JSON。
最近提交(Master分支:6 个月前 )
51a77f1d
3 天前
756ca22e
3 天前
更多推荐
所有评论(0)