what jsonencode does in dart code example
Example: dart list to json
import 'dart:convert';
main() {
List<String> tags = ['tagA', 'tagB', 'tagC'];
String jsonTags = jsonEncode(tags);
print(jsonTags); // ["tagA","tagB","tagC"]
}
import 'dart:convert';
main() {
List<String> tags = ['tagA', 'tagB', 'tagC'];
String jsonTags = jsonEncode(tags);
print(jsonTags); // ["tagA","tagB","tagC"]
}