Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.612.713 Times

jsongrep for Linux 0.1.1

Company: David Schoonover
Date Added: June 19, 2013  |  Visits: 206

jsongrep for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (17 downloads)

jsongrep is a command-line utility for extracting values from JSON documents. It supports shell-like globbing for property names, and emits the matched values separated by newlines.<br /><br />Examples:<br /><br />Let's start with a real-world example.<br /><br />Let's grab the even tweets from the last 10 pulled from Twitter's JSON feed http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-public_timeline<br /><br />$ curl -s 'http://twitter.com/statuses/public_timeline.json' | jsongrep '[02468].text'<br />ARGHHHHHH. facebook is being gay<br />5-5 in the darts between Barney and Whitlock. Amazing. #darts<br />I wonder if I'm still located on 5th ave?<br />Estou de volta a internet .... Essa chuva n para ! Estou de boa com a minha familia .<br /><br />Yeah, that's just about what I expected.<br /><br />Now suppose you have a JSON document like the one in tests/ongz.json which looks like this:<br /><br />{<br /> "bah" : {<br /> "feh" : true,<br /> "foo" : 3,<br /> "lah" : "songz"<br /> },<br /> "blah" : {<br /> "lol" : "gongz"<br /> },<br /> "arr" : [<br /> "a", "b", "c", "d", "e",<br /> "f", "g", "h", "i", "j",<br /> "k", "l", "m", "n", "o",<br /> "p", "q", "r", "s", "t",<br /> "u", "v", "w", "x", "y",<br /> "z"<br /> ]<br />}<br /><br />jsongrep will let you match structural patterns, where . (dot) separates nested properties.<br /><br />Let's glob on property names:<br /><br />$ jsongrep 'b*.l*' tests/ongz.json<br />gongz<br />songz<br /><br />Works on arrays, too:<br /><br />$ jsongrep 'arr.?' tests/ongz.json<br />a<br />b<br />c<br />d<br />e<br />f<br />g<br />h<br />i<br />j<br /><br />Note that we're still globbing, even though arrays have numeric indices:<br /><br />$ jsongrep 'arr.2?' tests/ongz.json<br />u<br />v<br />w<br />x<br />y<br />z<br /><br />If you specify a JSON subtree, that's what you get back:<br /><br />$ jsongrep 'bah' tests/ongz.json<br />{"foo": 3, "lah": "songz", "feh": true}<br /><br />Syntax<br /><br />jsongrep currently supports normal shell glob patterns within property names:<br /><br />? Matches any one character<br />* Matches any number of characters within a field<br />[seq] Matches any of the characters in seq<br />[!seq] Matches any of the characters not in seq<br /><br />Dot is the field separator.<br /><br />Usage<br /><br />Usage: jsongrep [options] [PATTERN | -e PATTERN [-e PATTERN ...]] [FILE]<br /><br />Parses JSON data structurally to select a subset of data.<br /><br />Options:<br /> --version show program's version number and exit<br /> -h, --help show this help message and exit<br /> -e PATTERNS, --pattern=PATTERNS<br /> Additional patterns to match.<br /> -D, --detect-encoding<br /> Attempts to detect the character encoding of input if<br /> LC_TYPE and file.encoding provide insufficient hints.<br /> (Slow) [default: False]<br /><br />#md5=6d77fe5a1f5388fd96c2fcb7581fe968

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Arrays Character Characters Globbing Jsongrep Jsongrep Linux Linux Match Matches Number Pattern Patterns Property Quotfehquot Quotlahquot Quotsongzquot Supports That039s Values Version
Users rating: 0/10

License: Freeware Size: 10.24 KB
JSONGREP FOR LINUX RELATED
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Libraries  -  Tie::CharArray 1.00
Tie::CharArray module can access Perl scalars as arrays of characters. SYNOPSIS use Tie::CharArray; my $foobar = a string; tie my @foo, Tie::CharArray, $foobar; $foo[0] = A; # $foobar = A string push @foo, !; # $foobar = A string! print...
5.12 KB  
Games  -  Anime Characters Quizz 1.0.0.0
Anime Characters Quizz contains more than 100 questions about anime character (Characters in Death Note, Sword Art Online, Madoka Magica, Naruto, One Piece, Fate Stay Night, Accel World,... ). In this app you need to guess the name of anime...
4 MB  
Games  -  Chipwrecked: Coloring with the Chipmunks 1.3
To celebrate the release of Alvin and the Chipmunks: Chipwrecked on Blu-ray, Fox invites you to color your favorite characters from the movie! Mix and match different characters and backgrounds, then get ready to color! Draw and fill colors...
21.1 MB  
Games  -  Chipwrecked: Coloring with the Chipmunks for iPad 1.4
To celebrate the release of Alvin and the Chipmunks: Chipwrecked on Blu-ray, Fox invites you to color your favorite characters from the movie! Mix and match different characters and backgrounds, then get ready to color! Draw and fill colors...
21.5 MB  
Games  -  Gummy Dots 1.0
Swipe and match 3 or more gummy characters in this exciting yet simple match 3 puzzle game. Score the highest within 15 moves. Check it out today for FREE! Requirements: iOS 5.1 or later. Compatible with iPhone, iPad, and iPod...
38.5 MB  
Utilities  -  Castle Linux 2.4
Castle is a server distribution from the ALT Linux Team in Russia. Installation instructions and some other documentation is available in English. Brief RSBAC instructions: 1. During installation process you will have to create security...
706 MB  
Utilities  -  zr364xx for Linux 0.70
zr364xx for Linux attempts to bring support under Linux for the Aiptek PocketDV 3300 in webcam mode (also known as "Maxell Maxcam PRO DV3"). All the code is still under developpement... If you just want to get on your PC the pictures and...
15.36 KB  
Utilities  -  Arabian Linux 2007
Arabian Linux also known as arl is a bootable CD with a compilation of GNU/Linux software, full support for Arabic/English languages and automatic hardware detection. Its the first arabic live-distro using KDE as the default GUI, the first to...
130.1 MB  
Utilities  -  Zero Touch Linux Server 1.0
Zero Touch Linux Server is the easiest way to setup your back office infrastructure. If you need mail server, file server or domain controller - ZTL is perfect for you. ZTL is now a FREE product that brings together the stability of Linux and the...
450 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB