Support all JSON configuration options

As noted in issue #512 the current JSON serializer ignored most configuration
options, so pass them all through.
Tests for passing config options to JSON serializer.
Reflect changes; addes @nichtich as a contributor.
Merge branch 'feature/pass_all_json_config'