Updated to work the newer Dart versions

Had a problem with the dart:json library; it appears to have been
depricated. Instead, we now use dart:convert.