WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: jq - Command-line JSON processor  (Read 5416 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
jq - Command-line JSON processor
« 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



« Last Edit: January 21, 2013, 03:24:49 PM by dubcore »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: jq - Command-line JSON processor
« Reply #1 on: January 21, 2013, 03:55:35 PM »
Binary download appears to work out of the box ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
Re: jq - Command-line JSON processor
« Reply #2 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


Offline kklepper

  • Newbie
  • *
  • Posts: 1
Re: jq - Command-line JSON processor
« Reply #3 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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: jq - Command-line JSON processor
« Reply #4 on: February 10, 2017, 08:07:54 PM »
Hi kklepper
Try:
Code: [Select]
tce-load -w -i compiletc python

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: jq - Command-line JSON processor
« Reply #5 on: February 10, 2017, 11:31:23 PM »
also, you shouldn't use "sudo git clone..." - just "git clone..." should be sufficient.

Offline JustinCB

  • Newbie
  • *
  • Posts: 28
Re: jq - Command-line JSON processor
« Reply #6 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). 

Offline JustinCB

  • Newbie
  • *
  • Posts: 28
Re: jq - Command-line JSON processor
« Reply #7 on: June 06, 2017, 12:47:37 PM »
jq.tcz is up for downloading now.