Ventoy Forums
[SOLVED] Syntax error on Boot - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: [SOLVED] Syntax error on Boot (/showthread.php?tid=1732)



[SOLVED] Syntax error on Boot - Schrotty - 06-23-2021

I get always a Syntax error whene i boot ventoy. I dont find the issues.

Here my ventoy.json

Code:
{
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
    ],
   
    "theme": {
        "file": "/ventoy/theme/Tela/theme.txt",
        "gfxmode": "1920x1080"
    },
   
"menu_class" : [
       {
            "key": "Windows_19043",
            "class": "windows10"
        },
{
            "key": "Windows_21390",
            "class": "windows10"
        },     
       {
            "key": "linuxmint",
            "class": "linuxmint"
        },                  
       {
            "key": "AcronisTrueImage2021",
            "class": "acronis"
        },       
       {
            "key": "AOMEI_Backupper",
            "class": "aomei"
        },       
       {
            "key": "elementaryos",
            "class": "elementary"
        },       
       {
            "key": "Hasleo_Backup",
            "class": "hasleo"
        },       
       {
            "key": "UltimateBootCD",
            "class": "ubcd"
        },       
       {
            "key": "memtest86-usb",
            "class": "memtest"
        },       
{
            "key": "ventoy-livecd",
            "class": "ventoy"
        },            
{
            "key": "WinPE10_Sergei_Strelec",
            "class": "windows10"
        },
    ]
}



RE: Syntax error on Boot - longpanda - 06-23-2021

{
            "key": "WinPE10_Sergei_Strelec",
            "class": "windows10"
        }, <------------------- Delete this comma
    ]


RE: Syntax error on Boot - longpanda - 06-23-2021

Some online tools will give you more details about the syntax error. For example:
https://www.json.cn
http://json.parser.online.fr

Always check the json file with them before boot.


RE: Syntax error on Boot - Schrotty - 06-23-2021

(06-23-2021, 06:09 AM)longpanda Wrote: {
            "key": "WinPE10_Sergei_Strelec",
            "class": "windows10"
        }, <------------------- Delete this comma
    ]

Thx working.