json_to_dart
json_to_dart copied to clipboard
new dart version fixed 20.0 is int type, now double
Dart SDK version is 2.4.0

Result is:
main(){
print(20.0.runtimeType); //double
print(20.1.runtimeType); //double
print(20.runtimeType); //int
}
you can test.
I ported a javascript JSON AST parser to dart in order to fix this single issue a few weeks ago. It helped me to pinpoint warnings in the JSON editor, which is nice, but now I'm regretting this because the JSON formatter itself is removing these cases.
I'll see what I can do. Thanks for reporting