Add jsonIndent and defaultToKey options (needs splitting)