Created
August 1, 2018 17:27
-
-
Save RedBrogdon/b036a9fad570a523e7d73d4621fa5d20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
try { | |
final parsed = json.decode(aJsonStr); | |
} on FormatException catch (e) { | |
print("That string didn't look like Json."); | |
} on NoSuchMethodError catch (e) { | |
print('That string was null!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment