src/language-js/parse/json.js/createJsonError
function createJsonError(node, description) {
  const [start, end] = [node.loc.start, node.loc.end].map(
    ({ line, column }) => ({
      line,
      column: column + 1,
    })
  );
  return createError(`${description} is not allowed in JSON.`, { start, end });
}