inhies / cjdcmd

cjdcmd is a command line tool for cjdns
Other
43 stars 16 forks source link

cleanconfig command doesn't work? #26

Closed danry25 closed 11 years ago

danry25 commented 11 years ago

Hey, I'm trying to get cjdcmd to clean my config file of all the comments & non-JSON friendly stuff using cleanconfig, but I keep getting this: user@laptop ~ $ cjdcmd cleanconfig -file=/home/user/cjdns/cjdroute.conf -outfile file=/home/user/cjdns/cjdroute2.conf Loading configuration from: /home/user/cjdns/cjdroute.conf... Error loading config: invalid character '"' after object key:value pair

inhies commented 11 years ago

Clean config just strips out comments and re-formats the JSON with proper indenting. Unfortunately I have no means to debug invalid JSON beyond what it already spits out so your best bet is to run it through an external JSON validator to get some help. I use this one

danry25 commented 11 years ago

Oh well