Skip to content

Commit ada18c0

Browse files
jiachengxuyongtang
authored andcommitted
Add read_json and list_json_columns for JSON support. (#412)
1 parent b3e188a commit ada18c0

File tree

8 files changed

+352
-292
lines changed

8 files changed

+352
-292
lines changed

tensorflow_io/json/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ load(
1010
cc_library(
1111
name = "json_ops",
1212
srcs = [
13-
"kernels/json_input.cc",
13+
"kernels/json_kernels.cc",
1414
"ops/json_ops.cc",
1515
],
1616
copts = tf_io_copts(),

tensorflow_io/json/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"""JSONDataset.
1616
1717
@@JSONDataset
18+
@@list_json_columns
19+
@@read_json
1820
"""
1921

2022
from __future__ import absolute_import
@@ -24,9 +26,13 @@
2426
from tensorflow.python.util.all_util import remove_undocumented
2527

2628
from tensorflow_io.json.python.ops.json_ops import JSONDataset
29+
from tensorflow_io.json.python.ops.json_ops import list_json_columns
30+
from tensorflow_io.json.python.ops.json_ops import read_json
2731

2832
_allowed_symbols = [
2933
"JSONDataset",
34+
"list_json_columns",
35+
"read_json",
3036
]
3137

3238
remove_undocumented(__name__, allowed_exception_list=_allowed_symbols)

tensorflow_io/json/kernels/json_input.cc

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)