Function: jsonrpc-events-jq-at-point

jsonrpc-events-jq-at-point is an interactive and byte-compiled function defined in jsonrpc.el.gz.

Signature

(jsonrpc-events-jq-at-point)

Documentation

Find first { in line, use forward-sexp to grab JSON, pipe through jq.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
(defun jsonrpc-events-jq-at-point ()
  "Find first { in line, use forward-sexp to grab JSON, pipe through jq."
  (interactive)
  (save-excursion
    (beginning-of-line)
    (when (search-forward "{" (line-end-position) t)
      (backward-char)
      (let ((start (point)))
        (forward-sexp)
        (shell-command-on-region start (point) "jq" "*jq output*")))))