Made improvements to JSON parsing and nested dictionary optional unwrapping to prevent crashing when data is missing