Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: mocore on January 21, 2013, 03:22:53 PM

Title: jq - Command-line JSON processor
Post by: mocore on January 21, 2013, 03:22:53 PM

http://stedolan.github.com/jq/download/

Quote
jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text
...
jq is written in portable C, and it has zero runtime dependencies

jq built with
 
Code: [Select]
git clone git://github.com/stedolan/jq.git
cd jq
tce-load -i compiletc python
make && sudo make install

( after removing lines
Code: [Select]
jq.1: docs/content/3.manual/manual.yml
( cd docs; rake manpage; ) > $@

from ./jq/Makefile )


size is 350.21 KB



Title: Re: jq - Command-line JSON processor
Post by: tinypoodle on January 21, 2013, 03:55:35 PM
Binary download appears to work out of the box ;)
Title: Re: jq - Command-line JSON processor
Post by: mocore on January 21, 2013, 08:04:55 PM
it may be true now
 but some point in the past bin was not upto date , with fix/feature

Title: Re: jq - Command-line JSON processor
Post by: kklepper on February 10, 2017, 05:01:34 PM
1.

docker@boot2docker:~$ tce-load -wi jq
Downloading: jq.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: jq.tcz.md5.txt: No such file or directory
Error on jq.tcz

2.

docker@boot2docker:/c$ sudo git clone git://github.com/stedolan/jq.git
Cloning into 'jq'...
remote: Counting objects: 6734, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 6734 (delta 7), reused 0 (delta 0), pack-reused 6710
Receiving objects: 100% (6734/6734), 5.06 MiB | 1.64 MiB/s, done.
Resolving deltas: 100% (4007/4007), done.
Checking connectivity... done.
docker@boot2docker:/c$ cd jq
docker@boot2docker:/c/jq$ tce-load -i compiletc python
compiletc.tcz not found!

What now?
Title: Re: jq - Command-line JSON processor
Post by: Rich on February 10, 2017, 08:07:54 PM
Hi kklepper
Try:
Code: [Select]
tce-load -w -i compiletc python
Title: Re: jq - Command-line JSON processor
Post by: Juanito on February 10, 2017, 11:31:23 PM
also, you shouldn't use "sudo git clone..." - just "git clone..." should be sufficient.
Title: Re: jq - Command-line JSON processor
Post by: JustinCB on May 30, 2017, 08:53:37 AM
I made a new jq.tcz extension, and it is in the pipeline for submission(which means in a week or so, it will be in the app browser, I believe). 
Title: Re: jq - Command-line JSON processor
Post by: JustinCB on June 06, 2017, 12:47:37 PM
jq.tcz is up for downloading now.