Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418940

Summary: Should the JSBeautify plugin work on JSON files?
Product: [ECD] Orion Reporter: Mike Wilson <Mike_Wilson>
Component: ClientAssignee: Ken Walker <ken_walker>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: adrian.aichner, ken_walker
Version: unspecified   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Mike Wilson CLA 2013-10-08 12:11:29 EDT
It seems like it should.
Comment 2 Adrian Aichner CLA 2013-10-30 10:38:27 EDT
(In reply to Ken Walker from comment #1)
> Fixed in 
> 
> http://code.google.com/p/orion-plugins/source/
> detail?r=fa811b17ff9236a29a5ea35d10bdbb49fc21019d

Except, it doesn't seem to do a good job indenting json data.

I verified the indentation is the same no matter whether I call it manifest.json or manifest.js.

Does this inndentation look what is expected?

{
    "manifest_version": 2,
        "name": "__MSG_extension_name__",
        "version": "8",
        "minimum_chrome_version": "29.0.1521.3",
        "default_locale": "en",
        "description": "__MSG_extension_description__",
        "icons": {
        "48": "autosave48x48.png",
            "128": "autosave2_128x128.png"
    },
        "web_accessible_resources": ["autosave48x48.png",
        "autosave2_128x128.png"],
        "permissions": [
        "activeTab",
        "contextMenus",
        "storage",
        "unlimitedStorage"],
        "background": {
        "scripts": [
            "autosave_bg.js",
            "toast.js"]
    },
        "commands": {
        "review-autosaves": {
            "suggested_key": {
                "default": "Alt+Shift+A"
            },
                "description": "Send a 'review-autosaves' event to the extension"
        },
            "capture-tab": {
            "suggested_key": {
                "default": "Alt+Shift+C"
            },
                "description": "Send a 'capture-tab' event to the extension"
        }
    },
        "content_scripts": [{
        "all_frames": true,
            "matches": [
            "<all_urls>"],
            "js": [
            "autosave.js",
            "toast.js"],
            "css": [
            "autosave.css"]
    }],
        "options_page": "options.html"
}
Comment 3 Adrian Aichner CLA 2014-02-21 18:00:26 EST
Related Bug 426124 is still not fixed for me.