WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline mocore

  • Full Member
  • ***
  • Posts: 144
jq - Command-line JSON processor
« on: January 21, 2013, 12: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, 12:24:49 PM by dubcore »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: jq - Command-line JSON processor
« Reply #1 on: January 21, 2013, 12: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

  • Full Member
  • ***
  • Posts: 144
Re: jq - Command-line JSON processor
« Reply #2 on: January 21, 2013, 05:04:55 PM »
it may be true now
 but some point in the past bin was not upto date , with fix/feature


Offline kklepper

  • WikiUser
  • *
  • Posts: 1
Re: jq - Command-line JSON processor
« Reply #3 on: February 10, 2017, 02: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?

Offline Rich

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

Online Juanito

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