Datasets:

Modalities:
Text
Formats:
json
Libraries:
Datasets
Dask
License:
File size: 333 Bytes
10cc034
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import json

json_files = [];

for file in os.listdir():
    if file.endswith('.json'):
        json_files.append(file)

result = list()

for f1 in json_files:
    with open(f1, 'r') as infile:
        result.extend(json.load(infile))

with open('join_dataset.json', 'w') as output_file:
    json.dump(result, output_file)