diff --git a/src/prettyPrint.ts b/src/prettyPrint.ts index dd15f9c..4235d99 100755 --- a/src/prettyPrint.ts +++ b/src/prettyPrint.ts @@ -205,6 +205,8 @@ const printArray = (array: {}[], out: PrintWriter, idt: number, selection: objec case 'object': if (value == null) { out.print('null'); + } else if (Array.isArray(value)) { + printArray(value, out, idt + 1, selection, options); } else { printObject(value, out, idt + 1, selection, options); }