| 99 | |
| 100 | @pytest.mark.parametrize("orient", ["split", "records", "index", "columns", "values"]) |
| 101 | def test_read_json_basic(orient): |
| 102 | with tmpfile("json") as f: |
| 103 | df.to_json(f, orient=orient, lines=False) |
| 104 | actual = dd.read_json(f, orient=orient, lines=False) |
| 105 | actual_pd = pd.read_json(f, orient=orient, lines=False) |
| 106 | |
| 107 | assert_eq(actual, actual_pd) |
| 108 | if orient == "values": |
| 109 | actual.columns = list(df.columns) |
| 110 | assert_eq(actual, df) |
| 111 | |
| 112 | |
| 113 | @pytest.mark.parametrize("fkeyword", ["pandas", "json"]) |