Skip to content

Instantly share code, notes, and snippets.

@datacustodian
Last active January 24, 2019 00:53
Show Gist options
  • Save datacustodian/bb8d2f3ffe249b8d0f526ad91801bd40 to your computer and use it in GitHub Desktop.
Save datacustodian/bb8d2f3ffe249b8d0f526ad91801bd40 to your computer and use it in GitHub Desktop.
Handling JSON Lines Format

Handling JSON Lines Format

JSON Lines text format, also called newline-delimited JSON, is a convenient format for storing structured data that may be processed one record at a time.

Files in JSON Lines format usually carry the extension .jsonl.

Official Site for JSON Lines Format: http://jsonlines.org/

jq Tool

jq is a lightweight and flexible command-line JSON processor: https://stedolan.github.io/jq/

Setup

https://stedolan.github.io/jq/download/

  • CentOS: yum install -y jq
  • Ubuntu: apt install -y jq
  • OS X (Homebrew): brew install jq

Examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment