Q:

Unexpected string in JSON at position 608 while parsing

I'm trying to host my react website to GitHub, but when I try to use:
npm install --save gh-pages

I get the following error:
Failed to parse json
npm ERR! JSON.parse Unexpected string in JSON at position 608 while parsing '{
npm ERR! JSON.parse   "name": "myportfoliosite",
npm ERR! JSON.parse   "versio'

The repository is at: https://github.com/InquisitiveDev2016/React-Developer-Portfolio2
Here is the package.json file:
{
  "name": "myportfoliosite",
  "version": "0.1.0",
  "private": true,
  "homepage": "https://github.com/InquisitiveDev2016/React-Developer-Portfolio2",
  "dependencies": {
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "react-mdl": "^1.11.0",
    "react-router-dom": "^5.0.1",
    "react-scripts": "3.0.1"
  },
  "scripts": {
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build",
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  }
}
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

I am trying to follow the instructions under the GitHub pages folder at:
https://facebook.github.io/create-react-app/docs/deployment
But I am stuck, can someone please check what's wrong with the file?

A:

This package.json was not a valid JSON you can try to fix the JSON structure, using online tools like and  validate the JSON
https://jsoneditoronline.org/
https://jsonformatter.org/
below JSON should work for you:
    {
      "name": "myportfoliosite",
      "version": "0.1.0",
      "private": true,
      "homepage": "https://github.com/InquisitiveDev2016/React-Developer-Portfolio2",
      "dependencies": {
        "react": "^16.8.6",
        "react-dom": "^16.8.6",
        "react-mdl": "^1.11.0",
        "react-router-dom": "^5.0.1",
        "react-scripts": "3.0.1"
      },
      "scripts": {
        "predeploy": "npm run build",
        "deploy": "gh-pages -d build",
        "start": "react-scripts start",
        "build": "react-scripts build",
        "test": "react-scripts test",
        "eject": "react-scripts eject"
      },
      "eslintConfig": {
        "extends": "react-app"
      },
      "browserslist": {
        "production": [
          ">0.2%",
          "not dead",
          "not op_mini all"
        ],
        "development": [
          "last 1 chrome version",
          "last 1 firefox version",
          "last 1 safari version"
        ]
}
}

