JSON random data generation based on template