how to get data in JSON format ?