Changed data format to JSON