JSON parse protection

protect JSON parsing from syntax errors - provide default return value or empty object if parsing fails + log