Flutter中用于JSON解析的等效功能是什么?

Flutter中是否有等效的G-SON / Jackson / Mos-hi /?

评论
hipsum
hipsum

使用dart:convert包的json。这是一个例子:

import 'dart:convert' as JSON;

main() {
  final json = '{"a": "b"}';
  final decoded = JSON.jsonDecode(json);
}

Check out the official doc here.

In my latest project I use json_serializable it works well for me

点赞
评论