JSON output is now indented by default. Closes #350.

This commit is contained in:
n1474335 2018-08-29 19:05:58 +00:00
parent 7061c05f77
commit 0d63b3cbae
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ class Dish {
this.value = this.value instanceof BigNumber ? Utils.strToByteArray(this.value.toFixed()) : [];
break;
case Dish.JSON:
this.value = this.value ? Utils.strToByteArray(JSON.stringify(this.value)) : [];
this.value = this.value ? Utils.strToByteArray(JSON.stringify(this.value, null, 4)) : [];
break;
case Dish.FILE:
this.value = await Utils.readFile(this.value);