I wonder how does Dart handle JSON? More specifically:
- Can I access item in a JSON object and when, how?
- Can I convert Darts data structures like Set and Maps into JSON?
- Can I create a new JSON, only by calling JSON.parse?
- How can I add new items into a JSON?
You might find this post of mine interesting:
http://www.grobmeier.de/dart-creating-a-dynamic-list-with-dart-php-and-json-20112011.html
You need to use the JSON package (add json to pubspec.yaml):
Here is the according spec:
https://api.dartlang.org/docs/channels/stable/latest/json.html
To your questions: