json_to_dart icon indicating copy to clipboard operation
json_to_dart copied to clipboard

new dart version fixed 20.0 is int type, now double

Open itstrive opened this issue 6 years ago • 1 comments

Dart SDK version is 2.4.0

image

Result is:

main(){
	print(20.0.runtimeType); //double
	print(20.1.runtimeType); //double
	print(20.runtimeType); //int
}

you can test.

itstrive avatar Aug 21 '19 10:08 itstrive

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

javiercbk avatar Aug 22 '19 14:08 javiercbk