From 95189e37ba26e427306a4ca549d7dbc37edcb9f8 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 16 Jun 2022 07:48:44 -0700 Subject: [PATCH] add streaming parsers link --- README.md | 3 ++- templates/readme_template | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5d1a478..99cc750a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,8 @@ $ jc dig example.com | jq -r '.[].answer[].data' ``` The `jc` parsers can also be used as python modules. In this case the output -will be a python dictionary, or list of dictionaries, instead of JSON: +will be a python dictionary, or list of dictionaries, or even a [lazy +iterable of dicionaries](#Streaming Parsers) instead of JSON: ```python >>> import subprocess >>> import jc diff --git a/templates/readme_template b/templates/readme_template index d6e7f8e0..d7fcc469 100644 --- a/templates/readme_template +++ b/templates/readme_template @@ -45,7 +45,8 @@ $ jc dig example.com | jq -r '.[].answer[].data' ``` The `jc` parsers can also be used as python modules. In this case the output -will be a python dictionary, or list of dictionaries, instead of JSON: +will be a python dictionary, or list of dictionaries, or even a [lazy +iterable of dicionaries](#Streaming Parsers) instead of JSON: ```python >>> import subprocess >>> import jc