Manifest is not valid JSON. Line: 5, column: 2, Syntax error - json

Writing my first extention and keep getting this issue
{
"name": "Hello extentions",
"version": "1.0",
"manifest_version": 3
"action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
}
}
"browser_action" instead of "action" dont help

You are missing a comma after
"manifest_version": 3
which makes this JSON file syntactically invalid. Try adding a comma:
{
"name": "Hello extentions",
"version": "1.0",
"manifest_version": 3,
"action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
}
}

Related

Why Chrome web store manifest?

Whats wrong chrome doesn't allow to upload a zip file
An error occurred: Failed to process your item.
manifest.json:17:2: unexpected char.
{
"manifest_version": 2,
"name": "TechnoSwift Launcher",
"description": "Quick launch TechnoSwift",
"version": "1.0.1",
"author":"Shareque",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html",
"default_title": "TechnoSwift Launcher"
},
"permissions": [
"activeTab"
],
}

Manifest is not valid JSON. Line: 10, column: 3, Unexpected data after root element

I'm learning about developing Google Chrome extensions. Upon attempting to load my extension, I receive the following message:
Manifest is not valid JSON. Line: 10, column: 3, Unexpected data after root element.
Below is my manifest.json file:
{
"manifest_version": 2,
"name": "ShowTime",
"description": "Extension to show the current date and time",
"version": "1.2",
"default_locale": "en",
"description": "A plain text description",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"browser_action": {
"default_title": "ShowTime",
"default_icon": "icon.png",
"default_popup": "popup.html"
}
}

Manifest is not valid JSON. Line: 3, column: 12, Syntax error. Chrome Error json file

Manifest is not valid JSON. Line: 3, column: 12, Syntax error.
{
"name": "invite all fb1",
"version"; "1.0",
"manifest_version": 2,
"description": "Here you can test the new Invite all for the new invite box in fb",
"browser_action": {
"default_icon": "icon.png"
}
}
http://imgur.com/CxAUSlE
you have a syntax error in "version"; "1.0". change it to "version": "1.0",:
{
"name": "invite all fb1",
"version": "1.0",
"manifest_version": 2,
"description": "Here you can test the new Invite all for the new invite box in fb",
"browser_action": {
"default_icon": "icon.png"
}
}
{
"name": "invite all fb1",
"version": "1.0",
"manifest_version": 2,
"description": "Here you can test the new Invite all for the new invite box in fb",
"browser_action": {
"default_icon": "icon.png"
}
}
Replaced ; with : after version. "version": "1.0",

How to program a manifest file for a chrome extention

I'm trying to upload a chrome extension, but I'm being returned an error that my json file has a syntax error, but I can't figure out what it is. Here's the file:
{
"manifest_version": 2,
"name": "Drive to Tumblr",
"version": "1",
"description": "Posts files from google drive to tumblr",
"icons": "Extention_Logo_48x48.png"
},
"browser_action": {
"default_title": "Drive to Tumblr",
"default_icon": "Extention_Logo_19x19.png",
"default_popup": "button.html"
}
}
I'm using the given syntax on the chrome developers guide, so could anyone tell me what I'm doing wrong?
You don't need the 1st close brace that you have because the browser_action is still part of the main manifest. This should work:
{
"manifest_version": 2,
"name": "Drive to Tumblr",
"version": "1",
"description": "Posts files from google drive to tumblr",
"icons": "Extention_Logo_48x48.png",
"browser_action": {
"default_title": "Drive to Tumblr",
"default_icon": "Extention_Logo_19x19.png",
"default_popup": "button.html"
}
}

chrome extension javascript problem

I started trying to write chrome extension and I'm having problem with simple function:
script inside "backgroound.html":
chrome.tabs.onUpdated.addListener(function(tabId,changedInfo,tab){alert("a")});
manifest.json file:
{
"name": "ogys",
"version": "1.0",
"description": "description",
"browser_action": {
"default_icon": "icon.png",
"background_page": "background.html"
},
"permissions": ["tabs", "http://code.google.com/"]
}
I understand that an change on any tab would trigger the event but nothing happends.
According with code.google.com, you've defined the backround_page in the wrong place.
Move the background_page property definition outer from browser_action action in this way:
{
"name": "ogys",
"version": "1.0",
"description": "description",
"browser_action": {
"default_icon": "icon.png"
},
"background_page": "background.html",
"permissions": ["tabs", "http://code.google.com"]
}