Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Dart VM now supports more libraries natively

Posted by Seth Ladd

Thanks to a recent commit to the bleeding_edge branch, the Dart VM now natively resolves dart:json, dart:uri, and dart:utf8.

This means the following code will now work when executed via the dart command line:


#import('dart:json');


main() {
  var json = '{"moar_libraries": true}';
  var obj = JSON.parse(json);
}

Great to see more SDK libraries get first class treatment!