• Stars
    star
    4,550
  • Rank 8,909 (Top 0.2 %)
  • Language
    C
  • License
    Other
  • Created about 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JSON output from a shell

jo

jo logo

This is jo, a small utility to create JSON objects

$ jo -p name=jo n=17 parser=false
{
    "name": "jo",
    "n": 17,
    "parser": false
}

or arrays

$ seq 1 10 | jo -a
[1,2,3,4,5,6,7,8,9,10]

It has a manual, and you can read why I wrote jo.

Build from Release tarball

To build from a release you will need a C compiler to install from a source tarball which you download from the Releases page.

tar xvzf jo-1.3.tar.gz
cd jo-1.3
autoreconf -i
./configure
make check
make install

Build from Github

Build Status

To install from the repository, you will need a C compiler as well as a relatively recent version of automake and autoconf.

git clone https://github.com/jpmens/jo.git
cd jo
autoreconf -i
./configure
make check
make install

Install

Homebrew

brew install jo

MacPorts

sudo port install jo

Ubuntu

apt-get install jo

Gentoo

emerge jo

Fedora

dnf install jo

Snap

Thanks to Roger Light, jo is available as a snap package. Use snap install jo from a Linux distro that supports snaps.

Windows

scoop install jo

Windows WSL2

As shown in #175 when using git on Windows WSL2 it should be necessary to disable automatic CRLF conversion in git or the tests will fail:

git config --local core.autocrlf false

AIX

jo builds and passes all tests on AIX 7.1 using the autoconf, automake, gcc, and pkg-config RPMs from IBM's AIX Toolbox for Open Source Software. The xlclang compiler from IBM's xlC/C++ suite for AIX will also build jo.

Others

See also

Credits

  • json.[ch] by 2011 Joseph A. Adams (joeyadams3.14159[at]gmail.com).

More Repositories

1

mqttwarn

Subscribe to MQTT topics (with wildcards) and notify pluggable services
Python
908
star
2

mosquitto-auth-plug

Authentication plugin for Mosquitto with multiple back-ends (MySQL, Redis, CDB, SQLite3)
C
808
star
3

mqtt-launcher

Execute shell commands triggered by published MQTT messages
Python
185
star
4

homie-ota

OTA "server" in Python for Homie
Python
128
star
5

simple-mqtt-websocket-example

Simple MQTT Websocket example
JavaScript
111
star
6

scrumptious

Scrumptious Bookmarks in CouchDB
JavaScript
72
star
7

mqtt2graphite

Subscribe to MQTT topics and push to Graphite's Carbon server
Python
70
star
8

tempgauge

HTML5 canvas gauge for temperature obtained from an MQTT subscribe
Python
68
star
9

mqtt-svg-dash

SVG "live" dashboard from MQTT
JavaScript
60
star
10

check-mqtt

A Nagios/Icinga plugin for testing an MQTT broker
Python
58
star
11

mqtt-watchdir

Recursively watch a directory for modifications and publish file content to an MQTT broker
Python
38
star
12

ansible-m-dnsupdate

Ansible module to perform RFC 2136 dynamic DNS updates
Python
32
star
13

pico

C++
28
star
14

ansible-facts

Ansible module (python) to produce own "facts"
Python
24
star
15

mqttcollect

collectd "Exec" plugin for MQTT
C
22
star
16

qtripp

Queclink Track (air) Interface Protocol Processor
C
22
star
17

msoak

MQTT subscribe to mutliple servers / topics simultaneously
C
20
star
18

ansible-m-pdns_zone

Ansible module to create/delete/list PowerDNS zones
Python
19
star
19

mqtt-osx-notifier

Notify OSX from topics published on OSX (see mqttwarn)
Python
18
star
20

from-traccar

Traccar positions and events to MQTT
C
16
star
21

ansible-jinja2-templates

Example Jinja2 templates for Ansible
15
star
22

n-repo

Sample repository for Ansible in "Pull"-mode
Python
15
star
23

hared-hare

Alerting or notifying on SSH logins
C
14
star
24

nagval

Nagios/Icinga plugin to check validity of one or more DNSSEC domains
C
14
star
25

notify-by-mqtt

A Nagios/Icinga module to submit notifications to mqttwarn
Python
14
star
26

tempmonitor

A simple MQTT Websocket temperature monitoring page with Arduino support
JavaScript
13
star
27

ansible-graphite

very experimental: install Graphite via Ansible
Python
13
star
28

facts2sshfp

Create SSHFP records for DNS from YAML fact files on Puppet master
Python
12
star
29

1090-to-owntracks

Import ADS-B data into OwnTracks via MQTT
Python
11
star
30

sonospauseIR

Arduino-based remote control for Sonos
Java
11
star
31

couch-sdb

BIND SDB driver for CouchDB
C
10
star
32

ansible-booklet

A reference card/cheat sheet/booklet for Ansible
Shell
10
star
33

dlz_lua

Lua "back-end" for BIND with dlz_dlopen()
C
10
star
34

revgeod

A reverse Geo lookup service written in C, accessible via HTTP and backed by OpenCage and LMDB
C
9
star
35

pudo

Upload JSON documents and attachments to a CouchDB instance
9
star
36

mqtt-prowl

Subscribe to topics on an MQTT broker and notify via Prowl (obsolete: see mqttwarn)
Python
9
star
37

twitter2mqtt

A Twitter to MQTT gateway (1-shot)
Python
8
star
38

dnssecmagic.js

Minimal HTML/JavaScript/jQuery code to determine if Web-browser is using a DNSSEC-validating cache
JavaScript
8
star
39

fritzuploader

Upload phonebook to Fritz!Box from the command-line
8
star
40

ansible-zypp

Ansible module (shell) to install/remove packages on Suse Linux
8
star
41

bzl

Bind Zone List
C
8
star
42

airportsd

IATA airport code lookup server
C
8
star
43

ansible-ntfy

Ansible action plugin to post JSON messages to nfty
Python
7
star
44

syncthing-activity

Monitor file changes as syncthing performs them
Python
6
star
45

mqtt-chronos

Periodically submit time/date-related data to an MQTT broker
C
5
star
46

jopleet

Copy individual tweet status URLs into Joplin notes
Python
5
star
47

whatmon

Mozilla Firefox/Thunderbird add-on for Monitoring Whatever
JavaScript
4
star
48

bind9stats

BIND9 statistics-server plugin for Munin
C
4
star
49

diablo

diablo-5-CUR-20090530-00 + XS4ALL patches
C
4
star
50

mqtwit

MQTT to Twitter. (obsolete: see mqttwarn)
Python
4
star
51

tt

to T
Python
3
star
52

check_nix

This is a Nagios/Icinga plugin for checking a particular DNS TXT RR. See the documentation in the program.
C
3
star
53

go-progs

Go programs (single binary, dependencies included)
3
star
54

owntracks-livetable

OwnTracks Live table
Python
2
star
55

make-big-aa

create a large RFC 1035 zone file
Perl
2
star
56

eitime

print an RRSIG expiration / inception time in the form `YYYYMMDD000000`
C
2
star
57

SensorTag_iOS

SensorTag_iOS from https://git.ti.com
Objective-C
2
star
58

ob

openBerlin
JavaScript
2
star
59

beanstalkc3-ot

A simple beanstalkd client library for Python3 patched for YAML.safe_load
Python
2
star
60

mqtt-speedo

Speedometer for MQTT messages (unreliable!)
CSS
2
star
61

pdns-remote-airports

pdns remote backend for airport codes
Python
2
star
62

rfc2136tweetr

Twitter status updates via RFC 2136 dynamic DNS updates
JavaScript
2
star
63

pdns2graphite

pdns2graphite
Python
2
star
64

powerdns-datacheck

MySQL UDF to check data in PowerDNS tables
C
2
star
65

cattled

This is !NOCOWS for Ansible: a repo of a cattle daemon
Go
1
star
66

ypom-cli

Python
1
star
67

t3

test pubkey
1
star
68

airports-zonedata

$INCLUDE airport locations
1
star
69

zabbix

Bastille Template to create a Zabbix Monitoring Jail
Shell
1
star
70

cy-ddns

C
1
star
71

ansible-ec2-userdata

Obtain user-data
Python
1
star
72

tpl02

HTML
1
star
73

revgeod-python

Python
1
star
74

luadnszones

Testing
1
star
75

openhab-workshop

Support files for my openHAB Workshop
C++
1
star
76

jndcalx

Get iCal/Sunbird to subscribe to your Lotus Notes calendar
C
1
star
77

whatmon-s

Whatmon for Safari
JavaScript
1
star
78

owa11-owntracks

owa11 MQTT to OwnTracks JSON
C
1
star
79

b1

tmp don't use
JavaScript
1
star
80

dv

POC: Lightweight file "signing" and verification using DNSSEC
C
1
star
81

jpmens.github.com

1
star
82

yaus

Yet Another URL Shortner
C
1
star