theNeighbourhoodGhost theNeighbourhoodGhost - 1 year ago 111
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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download