Skip to content

javamash/text2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text2json

text2json is a python project created to aide in conversion from text files to json objects.

Installation

Run converter.py

py converter.py

Usage

Right now, the converter only accepts single and key value pairs. Hopefully I will add some more freedom into the mixture.

Examples:

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"
}

Contributing

Feel free to submit pull requests. For any major changes submit an issue form with as much detail as possible.

About

Convert plain-text files into json objects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages