jq is useful to slice, filter, map and transform structured json data.
brew install jq
# Adapted from https://tinyapps.org/blog/nix/201701240700_convert_asciidoc_to_markdown.html | |
# Using asciidoctor 1.5.6.1 and pandoc 2.0.0.1 | |
# Install pandoc and asciidoctor | |
$ sudo apt install asciidoctor | |
$ sudo wget https://github.com/jgm/pandoc/releases/download/2.0.0.1/pandoc-2.0.0.1-1-amd64.deb | |
$ sudo dpkg -i pandoc-2.0.0.1-1-amd64.deb | |
# Convert asciidoc to docbook using asciidoctor |
package com.alertavert.samples; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import java.net.Inet4Address; | |
/** | |
* Simple example to show how to create a Java @link{InetAddress} from a JSON representation. | |
* | |
* <p>Jackson will try to use the @link{Inet4Address#Inet4Address(String, int)} constructor, and it |