jsawk
« Back to VersTracker
Description:
Like awk, but for JSON, using JavaScript objects and arrays
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: json javascript awk cli data-processing text-processing
Install: brew install jsawk
About:
Jsawk is a command-line utility that applies JavaScript transformations to JSON data streams, similar to how awk processes text. It parses input JSON into native JavaScript objects and arrays, allowing users to manipulate data using full JavaScript syntax before outputting the result. This tool bridges the gap between traditional Unix text processing and modern structured data manipulation.
Key Features:
  • Uses native JavaScript for data transformation
  • Processes JSON streams from stdin or files
  • Supports complex filtering and mapping operations
  • Integrates with Unix pipelines
Use Cases:
  • Extracting specific fields from JSON API responses
  • Transforming JSON data formats for different systems
  • Filtering log files in JSON format based on conditions
  • Performing calculations on JSON datasets
Alternatives:
  • jq – jq uses its own DSL while Jsawk uses JavaScript syntax
  • jql – jql is Python-based with different query syntax
Version History
Detected Version Rev Change Commit