forked from lxm_flutter/json2dart
use the string replace's method the resolve the int and double problem.
replace the generate code's num to int.
This commit is contained in:
@@ -50,8 +50,9 @@ void main() async {
|
||||
ButtonElement formatButton = querySelector("#format");
|
||||
formatButton.onClick.listen((click) {
|
||||
String pretty;
|
||||
pretty = convertJsonString(jsonInput.value);
|
||||
try {
|
||||
pretty = formatJson(jsonInput.value);
|
||||
pretty = formatJson(pretty);
|
||||
} on Exception {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user