<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.leaky.org/index.php?action=history&amp;feed=atom&amp;title=Jq</id>
		<title>Jq - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.leaky.org/index.php?action=history&amp;feed=atom&amp;title=Jq"/>
		<link rel="alternate" type="text/html" href="https://wiki.leaky.org/index.php?title=Jq&amp;action=history"/>
		<updated>2026-05-28T15:28:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.leaky.org/index.php?title=Jq&amp;diff=394&amp;oldid=prev</id>
		<title>Leaky: Created page with &quot;A utility for parsing and processing JSON data.  Download from https://stedolan.github.io/jq/  == Recipes ==  Download https://api.guildwars2.com/v1/maps.json and extract the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.leaky.org/index.php?title=Jq&amp;diff=394&amp;oldid=prev"/>
				<updated>2020-10-12T11:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;A utility for parsing and processing JSON data.  Download from https://stedolan.github.io/jq/  == Recipes ==  Download https://api.guildwars2.com/v1/maps.json and extract the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A utility for parsing and processing JSON data.&lt;br /&gt;
&lt;br /&gt;
Download from https://stedolan.github.io/jq/&lt;br /&gt;
&lt;br /&gt;
== Recipes ==&lt;br /&gt;
&lt;br /&gt;
Download https://api.guildwars2.com/v1/maps.json and extract the name/id of all public maps&lt;br /&gt;
&lt;br /&gt;
 jq '.maps | to_entries[] | select (.value.type == &amp;quot;Public&amp;quot;) | {name:.value.map_name, id:.key}' maps.json&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;to_entries&amp;lt;/code&amp;gt; converts a hash into an array of objects consisting of &amp;lt;code&amp;gt;{ key:..., value:... }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;select()&amp;lt;/code&amp;gt; filters the objects&lt;/div&gt;</summary>
		<author><name>Leaky</name></author>	</entry>

	</feed>