theNeighbourhoodGhost theNeighbourhoodGhost - 23 days ago 6x
JSON Question

Convert .txt file to JSON

I want to convert a fairly unorganized and unstructured text file to JSON format. I want to be able to use the city ID information. Is there anyway I can convert this 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