From 5091beb5affa2f89576e6218c43da0f37fb54229 Mon Sep 17 00:00:00 2001 From: Yaniv Aknin Date: Thu, 25 Apr 2024 06:24:37 +0100 Subject: [PATCH] Fix fromjson() to support reading from stdin --- petl/io/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petl/io/json.py b/petl/io/json.py index 75600e6c..f7b8c39c 100644 --- a/petl/io/json.py +++ b/petl/io/json.py @@ -16,7 +16,7 @@ from petl.util.base import data, Table, dicts as _dicts, iterpeek -def fromjson(source, *args, **kwargs): +def fromjson(source=None, *args, **kwargs): """ Extract data from a JSON file. The file must contain a JSON array as the top level object, and each member of the array will be treated as a