mirror of https://github.com/tildeclub/site.git
34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
|||
|
<head>
|
|||
|
<meta charset="utf-8" />
|
|||
|
<meta name="generator" content="pandoc" />
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
|||
|
<title>JSON</title>
|
|||
|
<link rel="stylesheet" href="/style.css">
|
|||
|
<style type="text/css">
|
|||
|
code{white-space: pre-wrap;}
|
|||
|
span.smallcaps{font-variant: small-caps;}
|
|||
|
span.underline{text-decoration: underline;}
|
|||
|
div.column{display: inline-block; vertical-align: top; width: 50%;}
|
|||
|
</style>
|
|||
|
<!--[if lt IE 9]>
|
|||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
|
|||
|
<![endif]-->
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<a href="/wiki/">< back to wiki home</a>
|
|||
|
<header>
|
|||
|
<h1 class="title">JSON</h1>
|
|||
|
|
|||
|
|
|||
|
</header>
|
|||
|
<p>JSON is the “Javascript Object Notation”, basically a file format for data that’s suitable for easy processing by most modern web-based tools.</p>
|
|||
|
<p>Several tilde.club programs expose APIs essentially by spitting out JSON as their output, including e.g. the list of recently updated home pages at</p>
|
|||
|
<p>http://tilde.club/~delfuego/tilde.24h.json</p>
|
|||
|
<p>If you’re looking to parse JSON from the command line with a minimum of code, the <code>jq</code> program may be your thing. <code>jq</code> is a filter that takes JSON on standard input and produces JSON on standard output. Along the way in the middle you can do various standard sorts of file munging on a field by field basis.</p>
|
|||
|
<p><a href="http://stedolan.github.io/jq/manual/">Documentation for <code>jq</code> is in its manual.</a></p>
|
|||
|
</body>
|
|||
|
</html>
|
|||
|
|