new script for generation

Added JSON data script to generate CSV/JSON output directly