Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Manifest is not valid JSON. Line 10

  • Hey!

    I'm trying to create my own very simple Opera addon. It is based on the addon "Show Password" by Veadarkin. I made some modification to his script. And i'm trying to learn how to write a script. I have read about how to do it on dev.opera.com/extensions but i keep getting syntax error when i load it in. I must have missed something, i don't know what to do!

    The syntax error i get
    Manifest is not valid JSON. Line: 10, column: 2, Syntax error.

    What is on line 10

    "content_scripts": [
    

    manifest.json

    {
    	"name": "Password Revealer",
    	"version": "1.0",
    	"manifest_version": 2,
    	"description": "Revealing text behind password forms",
    	"developer": {
    	"name": "Tcip",
    	"url": "http://www.tcip.se"
    	}	
    	"content_scripts": [ 
    	{
    	"all_frames": true,
    	"matches": [ "http://*/*", "https://*/*"],
    	"js": ["passwordrevealer.js"]
    	}
    	]
    }
    
  • Not that I know JSON, but it does seem strange to have [ followed immediately by { (and then } ] at the end of the same element). I'd try removing one or the other.

Log in to reply