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