text2json is a python project created to aide in conversion from text files to json objects.
Run converter.py
py converter.py
Right now, the converter only accepts single and key value pairs. Hopefully I will add some more freedom into the mixture.
input.txt
one
two
three
four
five
output.json
[
"one",
"two",
"three",
"four",
"five"
]
input.txt
one two
three four
five six
output.json
{
"one": "two",
"three": "four",
"five": "six"
}
Feel free to submit pull requests. For any major changes submit an issue form with as much detail as possible.