federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

How to use it? #29

Closed S1U closed 8 years ago

S1U commented 8 years ago

downloaded and installed in Atom.

In a new json file, selected the whole flat codes, and hit Package > Pretty JSON > Prettify, but nothing changed...

What's the right method?

pjnovas commented 8 years ago

Same here, it works if the file is saved with .json extension, I couldn't make it work with a just blank sheet (not saved file)

pjnovas commented 8 years ago

@i0sdev Just find out a way, select all the text and hit Ctrl+Shift+P then type "pretty" and choose Pretty Json: Prettify and it works

S1U commented 8 years ago

tried cmd+shift+p, a list popped out and hit any of Pretty Json, but not work, nothing changed :(

mac yosemite, atom

stephansarver commented 8 years ago

This plugin does not work on OSX EL Capitan following the provided instructions.

lexicalunit commented 8 years ago

Doesn't work on OS X 10.11 in my experience either. -- Edit: Actually got it to work. The issue was a stray comma in the JSON text. This caused JSON.parse(text) to throw an exception. This exception isn't surfaced to the user in any way though so there's no way to tell what went wrong.

ashikodes commented 8 years ago

The README is Officially the worst documentation i have come across. finally figuring it out and it doesn't even work