Convert .txt file to JSON
You can try to use tsv2json this tool can reads a tsv file from stdin and writes a json file to stdout.
It's distributed in source file, to compile it you need to download D compiler and then run dmd tsv2json.d
.
If you have more complex task there is another tool named tsv-utils