dmeranda / demjson

Python module for JSON data encoding, including jsonlint. See the project Wiki here on Github. Also read the README at the bottom of this page, or the project homepage at
http://deron.meranda.us/python/demjson/
Other
302 stars 76 forks source link

add executable script for pretty-print json. #4

Closed tonyseek closed 10 years ago

tonyseek commented 10 years ago

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 commented 10 years ago

@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 commented 10 years ago

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

brejoc commented 10 years ago

@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 commented 10 years ago

@brejoc I see. Thank you.

dmeranda commented 10 years ago

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 https://github.com/dmeranda/demjson/pull/4.

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

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