Skip to content

Commit

Permalink
better documentation on the setting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nodesocket committed Feb 12, 2017
1 parent 392348d commit 5d8ec94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ JSONlite sandboxes the current working directory similar to [SQLite](https://www
3. python -m json.tool
- Alternatively, install [yajl](http://lloyd.github.io/yajl/) for `json_reformat` *or* [jq](https://github.com/stedolan/jq) to get a roughly 3x performance improvement setting documents.

**json_reformat** is the fatest of the three setting options with **jq** coming in marginally slower and `python -m json.tool` being significantly slowest. If possible, ovoid using `python -m json.tool`.

## Installation

````
Expand Down Expand Up @@ -132,7 +134,7 @@ Usage: jsonlite command <command-specific-options>
```
➜ jsonlite
JSONlite 1.0.0
[using] json_reformat (fast)
set is using: json_reformat (fastest)
Data directory path: /tmp/jsonlite.data
Expand Down
6 changes: 3 additions & 3 deletions jsonlite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jsonlite_info() {
jsonlite_version

if command -v json_reformat > /dev/null 2>&1; then
echo " [using] json_reformat (fast)"
echo " set is using: json_reformat (fastest)"
elif command -v jq > /dev/null 2>&1; then
echo " [using] jq (fast)"
echo " set is using: jq (fast)"
else
echo " [using] python -m json.tool (slow)"
echo " set is using: python -m json.tool (slow)"
fi

echo
Expand Down

0 comments on commit 5d8ec94

Please sign in to comment.