Made configurable different aspects of the JSON generation.