fixed compilation warnings
Made configurable different aspects of the JSON generation.