Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart list to json

import 'dart:convert';

main() {
  List<String> tags = ['tagA', 'tagB', 'tagC'];
  String jsonTags = jsonEncode(tags);
  print(jsonTags);      // ["tagA","tagB","tagC"]
}
Source by bezkoder.com #
 
PREVIOUS NEXT
Tagged: #dart #list #json
ADD COMMENT
Topic
Name
7+4 =