loopback icon indicating copy to clipboard operation
loopback copied to clipboard

slc loopback produces unformatted json files

Open rmayhue opened this issue 11 years ago • 6 comments

I just updated strongloop to v4.0.5 and now all JSON files produced are un-formatted. Everything is now all on a single line (e.g.):

{"_meta":{"sources":["loopback/common/models","loopback/server/models"," ... }

Even if you manually format a file, adding models, relations etc., via slc will place everything back on a single line.

rmayhue avatar Jun 20 '15 22:06 rmayhue

+1. Same problem

ghislainf avatar Jun 22 '15 13:06 ghislainf

Argh, me too! This is very annoying!

OOPMan avatar Jun 22 '15 17:06 OOPMan

+1 Very annoying indeed!!

VishwasShashidhar avatar Jun 23 '15 16:06 VishwasShashidhar

+1

Going back to 4.0.4 until this is fixed, just not possible to make a useful screencast! :-(

spacemonkey avatar Jun 23 '15 19:06 spacemonkey

Ok looks like it was something else, as going back to 4.0.4 also produces the pre-minified JSON.

Anybody got a quick fix for now?

spacemonkey avatar Jun 23 '15 19:06 spacemonkey

Duplicate of https://github.com/strongloop/strongloop/issues/238

raymondfeng avatar Jun 23 '15 19:06 raymondfeng