Created
March 28, 2019 10:50
-
-
Save joe776/0bf3d37cc6773abf233843556af973a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
void main() { | |
print(json.encode([null])); | |
print(json.encode(double.nan, toEncodable: (_) => 'NaN')); | |
print(json.encode([double.nan], toEncodable: (_) => 'NaN')); | |
print(json.encode({'foo': [double.nan]}, toEncodable: (_) => null)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment