//使用dart标准库里的json
import ‘dart:convert’;
……
… json.decode(const Utf8Decoder().convert(你的json字符串.runes.toList()));
如果想直接使用你http获得的response,还可以:
… json.decode(const Utf8Decoder().convert(response.bodyBytes));
……
//使用dart标准库里的json
import ‘dart:convert’;
……
… json.decode(const Utf8Decoder().convert(你的json字符串.runes.toList()));
如果想直接使用你http获得的response,还可以:
… json.decode(const Utf8Decoder().convert(response.bodyBytes));
……