Skip to content

arc279/ini2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ini to json

using jq

sample

$ jq --version
jq-1.6

$ cat sample/my.ini | ./ini2json.jq
{
  "[mariadb]": {
    "Description": "The Database for mariadb",
    "Trace": "On",
    "TraceFile": "stderr",
    "Driver": "mariadb",
    "SERVER": "192.168.12.1",
    "USER": "root",
    "PASSWORD": "1234",
    "PORT": "3306",
    "DATABASE": "test",
    "charset": "UTF8"
  },
  "[mysql]": {
    "Description": "The Database for mysql",
    "Trace": "On",
    "TraceFile": "stderr",
    "Driver": "mysql",
    "SERVER": "192.168.12.124",
    "USER": "root",
    "PASSWORD": "1234",
    "PORT": "3306",
    "DATABASE": "test",
    "charset": "UTF8"
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages