Port details on branch 2022Q3 |
- jshon JSON parser for the shell
- 20180209_1 textproc =1 20180209_1Version of this port present on the latest quarterly branch.
- Maintainer: 0mp@FreeBSD.org
- Port Added: 2013-01-23 13:53:55
- Last Update: 2024-01-11 13:59:36
- Commit Hash: 7074d7f
- People watching this port, also watch:: python, unoconv, py39-pycparser, sysinfo
- License: MIT
- WWW:
- http://kmkeen.com/jshon/
- Description:
- Jshon parses, reads and creates JSON. It is designed to be as usable as
possible from within the shell and replaces fragile ad hoc parsers made
from grep/sed/awk as well as heavyweight one-line parsers made from
perl/python.
Jshon loads JSON text from stdin, performs actions, then displays the last
action on stdout. Some of the options output JSON, others output plain text
meta information. Because Bash has very poor nested data structures, Jshon does
not try to return a native bash data structure as a typical library would.
Instead, Jshon provides a history stack containing all the manipulations.
The big change in the latest release is switching the everything from
pass-by-value to pass-by-reference. In a typical use case (processing AUR
search results for 'python') by-ref is twice as fast and uses one sixth the
memory. If you are editing JSON, by-ref also makes your life a lot easier as
modifications do not need to be manually inserted through the entire stack.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/textproc/jshon/ && make install clean
- To add the package, run one of these commands:
- pkg install textproc/jshon
- pkg install jshon
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: jshon
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1633351648
SHA256 (keenerd-jshon-20180209-d919aea_GH0.tar.gz) = a14521b9a0bf06e48949d6bd233403b754a8ac47b08f37244e589c34d8a4db0f
SIZE (keenerd-jshon-20180209-d919aea_GH0.tar.gz) = 14126
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gmake>=4.3 : devel/gmake
- Library dependencies:
-
- libjansson.so : devel/jansson
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for jshon-20180209_1:
ZSH=on: Install programmable completions for zsh
===> Use 'make config' to modify these settings
- Options name:
- textproc_jshon
- USES:
- gmake localbase:ldflags
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|