Concating / Merging Of Each Json Files, Python
I have multiple Json files and I want to concat / Merge and make that one Json files. Below code is throwing me an error def merge_JsonFiles(*filename): result = [] for f1
Solution 1:
The error message json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) indicates that your JSON file is malformed or even empty. Please double-check that the files are valid JSON.
Also, there's no good reason for your filename parameter to be a variable-length argument list:
def merge_JsonFiles(*filename):
Remove the * operator so that your JSON files can actually be read according to the filename list.
def merge_JsonFiles(filename):
Post a Comment for "Concating / Merging Of Each Json Files, Python"