grtjn / view-file-ng

Angular directive for previewing files.
https://grtjn.github.io/view-file-ng
Apache License 2.0
10 stars 1 forks source link

Friendly-json prints strings in arrays badly if preceded by an object #23

Closed grtjn closed 5 years ago

grtjn commented 5 years ago

Rather uncommon, but not rare. Arrays like [{ taggedSubject: 'xxx' }, 'yyy'] are handled badly. The yyy is printed as if it is an object, resulting in 1 y, 2 y, 3 y laid out vertically.