Using json to transmit the data and cache the output for 10 mins