to generate JSON output by prototype with rand data