JSON data retrieval and processing