Extracts data from JSON