1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-26 21:04:16 +02:00

Merge branch 'master' into dev

This commit is contained in:
Kelly Brazil
2021-12-02 16:34:06 -08:00
committed by GitHub
6 changed files with 26 additions and 8 deletions
+10 -2
View File
@@ -16,7 +16,9 @@ Usage (cli):
Usage (module):
import jc.parsers.csv_s
result = jc.parsers.csv_s.parse(csv_output)
result = jc.parsers.csv_s.parse(csv_output.splitlines()) # result is an iterable object
for item in result:
# do something
Schema:
@@ -24,7 +26,13 @@ Schema:
{
"column_name1": string,
"column_name2": string
"column_name2": string,
"_jc_meta": # This object only exists if using -qq or ignore_exceptions=True
{
"success": booean, # true if successfully parsed, false if error
"error": string, # exists if "success" is false
"line": string # exists if "success" is false
}
}
Examples: