Index: pkg/source_maps/lib/parser.dart |
diff --git a/pkg/source_maps/lib/parser.dart b/pkg/source_maps/lib/parser.dart |
index e2932634f158200bd72a3e21d53df2f82cadebea..6b8bf378089dc55f89822db1b10c72deb62bd6b3 100644 |
--- a/pkg/source_maps/lib/parser.dart |
+++ b/pkg/source_maps/lib/parser.dart |
@@ -5,7 +5,7 @@ |
/// Contains the top-level function to parse source maps version 3. |
library source_maps.parser; |
-import 'dart:json' as json; |
+import 'dart:convert'; |
import 'span.dart'; |
import 'src/utils.dart'; |
@@ -15,7 +15,7 @@ import 'src/vlq.dart'; |
// TODO(sigmund): evaluate whether other maps should have the json parsed, or |
// the string represenation. |
Mapping parse(String jsonMap, {Map<String, Map> otherMaps}) => |
- parseJson(json.parse(jsonMap), otherMaps: otherMaps); |
+ parseJson(JSON.decode(jsonMap), otherMaps: otherMaps); |
/// Parses a source map directly from a json map object. |
Mapping parseJson(Map map, {Map<String, Map> otherMaps}) { |