Flutter中是否有等效的G-SON / Jackson / Mos-hi /?
使用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
使用dart:convert包的json。这是一个例子:
Check out the official doc here.
In my latest project I use json_serializable it works well for me