{"id":22003,"date":"2014-06-17T09:50:05","date_gmt":"2014-06-17T07:50:05","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=22003"},"modified":"2014-06-17T09:50:05","modified_gmt":"2014-06-17T07:50:05","slug":"jq-a-lightweight-and-flexible-command-line-json-processor","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2014\/06\/17\/jq-a-lightweight-and-flexible-command-line-json-processor\/","title":{"rendered":"jq &#8211; a lightweight and flexible command-line JSON processor"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"http:\/\/stedolan.github.io\/jq\/\">jq<\/a> &#8211; a lightweight and flexible command-line JSON processor.<\/p>\n<blockquote><p>jq is like <em>sed<\/em> for JSON data \u2013 you can use it to slice and filter and map and transform structured data with the same ease that <em>sed<\/em>, <em>awk<\/em>, <em>grep<\/em> and friends let you play with text.<\/p><\/blockquote>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>jq &#8211; a lightweight and flexible command-line JSON processor. jq is like sed for JSON data \u2013 you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62,1334],"tags":[3306,1330],"keyring_services":[],"class_list":["post-22003","post","type-post","status-publish","format-link","hentry","category-general","category-programming","category-technology","category-web-work","tag-json","tag-web-development","post_format-post-format-link"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":29102,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/12\/14\/jq-deep-comparison-of-5gb-files\/","url_meta":{"origin":22003,"position":0},"title":"jq: deep comparison of 5GB files","author":"Leonid Mamchenkov","date":"December 14, 2018","format":false,"excerpt":"I've blogged about jq - a lightweight and flexible command line JSON processor - a few times already (look here and here).\u00a0 Today I came across this blog post that showcases jq in deep comparison of really large JSON files (5 GB or so).\u00a0 This is not something that I\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28161,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/01\/jq-and-jo-handy-cli-tools-for-working-with-json\/","url_meta":{"origin":22003,"position":1},"title":"jq and jo &#8211; handy CLI tools for working with JSON","author":"Leonid Mamchenkov","date":"November 1, 2017","format":false,"excerpt":"Here are a couple of really useful command-line tools for anybody working with JSON.\u00a0 The first one is jq, which is a somewhat wider known JSON processor.\u00a0 Here's a nice tutorial with many examples of how this tool is useful.\u00a0 The second one, is jo - a command-line tool for\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29245,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/01\/23\/fx-command-line-tool-and-terminal-json-viewer\/","url_meta":{"origin":22003,"position":2},"title":"fx &#8211; command-line tool and terminal JSON viewer","author":"Leonid Mamchenkov","date":"January 23, 2019","format":false,"excerpt":"fx is yet another command-line tool for working with JSON data. Some of the supported features: Formatting and highlightingStandalone binaryInteractive mode\u00a0Themes support This looks like a good alternative or a complimenting tool for both jq and jo.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/fx.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/fx.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/fx.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/01\/fx.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":28969,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/11\/12\/using-aws-cli-query-option-to-simplify-output\/","url_meta":{"origin":22003,"position":3},"title":"Using aws-cli &#8211;query Option To Simplify Output","author":"Leonid Mamchenkov","date":"November 12, 2018","format":false,"excerpt":"Eric Hammond shares a super-handy tip for those of us who work with Amazon AWS via the command line: I just learned about a recent addition to aws-cli: The\u00a0--query\u00a0option lets you specify what parts of the response data structure you want output. Instead of wading through pages of JSON output,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28521,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/25\/gron-make-json-greppable\/","url_meta":{"origin":22003,"position":4},"title":"gron &#8211; Make JSON greppable!","author":"Leonid Mamchenkov","date":"April 25, 2018","format":false,"excerpt":"gron is a grep-like tool that specializes in JSON format.\u00a0 Unlike grep, however, it works both way - in and out.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28333,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/01\/16\/json-server\/","url_meta":{"origin":22003,"position":5},"title":"JSON Server","author":"Leonid Mamchenkov","date":"January 16, 2018","format":false,"excerpt":"JSON Server is a handy tool for anybody working with or developing the REST\/JSON APIs.\u00a0 It's a ready-made \"fake\" API server, that is super easy to setup with your end points and your data.\u00a0 And the best part - it's not just read-only.\u00a0 You can work with POST, PUT, PATCH,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/22003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=22003"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/22003\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=22003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=22003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=22003"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=22003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}