Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON array formatting #135

Closed
carlosmcp opened this issue Apr 14, 2015 · 3 comments
Closed

JSON array formatting #135

carlosmcp opened this issue Apr 14, 2015 · 3 comments

Comments

@carlosmcp
Copy link

When i use the JsFormat in sublime, i'm getting like this:

{
 'Z':  [
            { 
              nome: 'A',
              index: 0 
             },
             {
              nome: 'B',
               index: 1 
             }              
     ]
}

So, i would like to get like this:

{
 'Z': [
                { nome: 'A', index: 0 }, 
                { nome: 'B', index: 1 }
      ]
}

It's possible?

@bitwiseman
Copy link
Collaborator

Waiting on this: beautifier/js-beautify#315

@jdavisclark
Copy link
Owner

looks like recently got merged in js-beautify. marking this as jsbeautifier-upgrade

@bitwiseman
Copy link
Collaborator

@jdc0589 -
Users will need to use the new brace-style: "collapse-preserve-inline" to make this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants