From 720480e39ce3cc2079d7f4f5bcff2725081fec34 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 22 Mar 2022 13:21:10 -0700 Subject: [PATCH] doc update --- docs/parsers/asciitable.md | 3 +++ docs/parsers/asciitable_m.md | 3 ++- jc/parsers/asciitable.py | 3 +++ jc/parsers/asciitable_m.py | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/parsers/asciitable.md b/docs/parsers/asciitable.md index 10238221..de06fcc0 100644 --- a/docs/parsers/asciitable.md +++ b/docs/parsers/asciitable.md @@ -45,6 +45,9 @@ For example: etc... + Headers (keys) are converted to snake-case. All values are returned as + strings, except empty strings, which are converted to None/null. + Usage (cli): $ cat table.txt | jc --asciitable diff --git a/docs/parsers/asciitable_m.md b/docs/parsers/asciitable_m.md index 2e72cfca..90ae4774 100644 --- a/docs/parsers/asciitable_m.md +++ b/docs/parsers/asciitable_m.md @@ -26,7 +26,8 @@ Cells with multiple lines within rows will be joined with a newline character ('\n'). Headers (keys) are converted to snake-case and newlines between multi-line -headers are joined with an underscore. All values are returned as strings. +headers are joined with an underscore. All values are returned as strings, +except empty strings, which are converted to None/null. Usage (cli): diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index 281f7578..c45805e0 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -40,6 +40,9 @@ For example: etc... + Headers (keys) are converted to snake-case. All values are returned as + strings, except empty strings, which are converted to None/null. + Usage (cli): $ cat table.txt | jc --asciitable diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index 63f59a27..c8907868 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -21,7 +21,8 @@ Cells with multiple lines within rows will be joined with a newline character ('\n'). Headers (keys) are converted to snake-case and newlines between multi-line -headers are joined with an underscore. All values are returned as strings. +headers are joined with an underscore. All values are returned as strings, +except empty strings, which are converted to None/null. Usage (cli):