fix single quote breaking json string parsing