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

add executable script for pretty-print json. #4

Closed
wants to merge 1 commit into from
Closed

add executable script for pretty-print json. #4

wants to merge 1 commit into from

Conversation

tonyseek
Copy link

It just like the implementation of json.tool in the Python Standard Library:

$ echo {'hello': 1} | python -m demjson

The file arguments are supported too:

$ python -m demjson raw.json pretty.json

It just like the implementation of `json.tool` in the Python Standard
Library::

    $ echo {'hello': 1} | python -m demjson

The file arguments are supported too::

    $ python -m demjson raw.json pretty.json
@brejoc
Copy link

brejoc commented Apr 8, 2014

@tonyseek If I'm not mistaken jsonlint might be the part of demjson you where looking for. With jsonlint you can easily pretty-print json from the command line with jsonlint -f.

@tonyseek
Copy link
Author

tonyseek commented Apr 9, 2014

@brejoc It seems the jsonlint will not be installed as site package. Could you add it into setup.py?

@brejoc
Copy link

brejoc commented Apr 9, 2014

@tonyseek I've pointed this out a while ago. I assume you've installed demjson via pip. Luckily some Linux distributions (like Ubuntu) ship jsonlint with the demjson package. If you are on Ubuntu just switch to the deb package. Otherwise you could fork the repo, patch the setup.py and install from your repo. Until @dmeranda responds, there is nothing more you or I can do.

@tonyseek
Copy link
Author

tonyseek commented Apr 9, 2014

@brejoc I see. Thank you.

@tonyseek tonyseek closed this Apr 9, 2014
@tonyseek tonyseek deleted the jsontool branch April 9, 2014 14:40
@dmeranda
Copy link
Owner

dmeranda commented Apr 9, 2014

Everybody,

It seems that interest in demjson has increased significantly over the past
several weeks. I do plan on jumping back into this project shortly,
hopefully this week, to address a series of feature backlogs and other
enhancements.

Deron

On Wed, Apr 9, 2014 at 10:40 AM, Jiangge Zhang notifications@github.comwrote:

Closed #4 #4.


Reply to this email directly or view it on GitHubhttps://github.com//pull/4
.

Deron Meranda
http://deron.meranda.us/

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

Successfully merging this pull request may close these issues.

3 participants