Skip to content

Commit 5091beb

Browse files
committed
Fix fromjson() to support reading from stdin
1 parent 1e77626 commit 5091beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petl/io/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from petl.util.base import data, Table, dicts as _dicts, iterpeek
1717

1818

19-
def fromjson(source, *args, **kwargs):
19+
def fromjson(source=None, *args, **kwargs):
2020
"""
2121
Extract data from a JSON file. The file must contain a JSON array as
2222
the top level object, and each member of the array will be treated as a

0 commit comments

Comments
 (0)