Convert LDIF (LDAP Data Interchange Format) to JSON.
To compile run make.
To test an example run make example.
By default, J-DIF will read LDIF content from standard input.
$ echo 'hello: world' | jdif
{"hello": "world"}If -f or --file is specified, J-DIF will parse an LDIF file.
$ jdif -f hello.txt
{"hello": "world"}Currently, J-DIF ouputs JSON inline, but it can be combined with other JSON formatting and parsing libraries like jq.
$ echo 'hello: world' | jdif | jq
{
"hello": "world"
}