Index: lib/json/json.dart |
diff --git a/lib/json/json.dart b/lib/json/json.dart |
index ac1fb5fc6ec750a03baf19719c01930360c75e3f..be26c011c7b4e81d6f1c7309d4aa3dc7fee035ee 100644 |
--- a/lib/json/json.dart |
+++ b/lib/json/json.dart |
@@ -331,7 +331,7 @@ class _JsonParser { |
} |
final codeString = json.substring(position + 1, position + 5); |
try { |
- c = parseInt('0x${codeString}'); |
+ c = int.parse('0x${codeString}'); |
} catch (e) { |
error('Invalid unicode esacape sequence'); |
} |
@@ -389,9 +389,9 @@ class _JsonParser { |
String number = json.substring(startPos, position); |
if (isInt) { |
- return parseInt(number); |
+ return int.parse(number); |
} else { |
- return parseDouble(number); |
+ return double.parse(number); |
} |
} |