def parse_json_data(content, raincontent, latitude=<NUM_LIT>,<EOL>longitude=<NUM_LIT>, timeframe=<NUM_LIT>):
result = {SUCCESS: False, MESSAGE: None, DATA: None}<EOL>if timeframe < <NUM_LIT:5> or timeframe > <NUM_LIT>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if content is not None:<EOL><INDENT>try:<EOL><INDENT>json_content = json.loads(content)<EOL><DEDENT>except json.JSONDecodeError as err:<EOL><INDENT>result[MESSAGE] = "<STR_LIT>"<EOL>log.error("<STR_LIT>", err)<EOL>return result<EOL><DEDENT>result = __parse_ws_data(json_content, latitude, longitude)<EOL>if result[SUCCESS] and raincontent is not None:<EOL><INDENT>data = __parse_precipfc_data(raincontent, timeframe)<EOL>result[DATA][PRECIPITATION_FORECAST] = data<EOL><DEDENT><DEDENT>log.debug("<STR_LIT>", result[DATA])<EOL>return result<EOL>
Parse the raw data and return as data dictionary.