Added regex parsing for data extraction. Added JSON formatting.