Answers for "dart json encode example"

5

dart json encode example

import 'dart:convert';

main() {
  List<String> tags = ['tagA', 'tagB', 'tagC'];
  String jsonTags = jsonEncode(tags);
  print(jsonTags);      // ["tagA","tagB","tagC"]
}
Posted by: Guest on May-19-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language