declare result as local variable
make indentation depth an option
add "sort keys" setting
Merge pull request #22 from nrw/master

Removed leak of "result". Added "indent" setting. Added "sortKeys" setting.