人品

2016-03-15 42 views
0

JSON对象未结束我想从互联网和现在我可以从互联网上串读它读取JSON,但我可能已经犯了一个错误,我不能在JSON发现:人品

{ 
    "S4ROMS" :[ 
    { 
     "name":"Cyanogenmod 13", 
     "android":"6.0.1", 
     "status":"nightly", 
     "description":"If you like android, you probably can't wait till your phone gets updates but cyanogenmod 13 brings you not just original android 6.0.1, it comes with root access, option to apply themes, option to switch from hardware to on screen buttons, the rest you will know when you install it.", 
     "tested":true, 
     "website":"https://download.cyanogenmod.org/?device=jfltexx", 
     "image":"http://images.technewstoday.com.s3.amazonaws.com/tnt/how-to-install-android-marshmallow-samsung-galaxy-s4-using-cm13-rom.jpg", 
     "gapps":true 
    }, 
    { 
     "name":"S4 Google Edition", 
     "android":"4.4.4", 
     "status":"stable", 
     "description":"Feel the experience of Nexus - this tells you everything.", 
     "tested":false, 
     "website":"http://forum.xda-developers.com/showthread.php?t=2544474", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":false 
    }, 
    { 
     "name":"PhoeniX ROM v11.6", 
     "android":"5.0.x", 
     "status":"stable" 
     "description":"Stock 5.0 Samsung Galaxy S4 touchwiz rom with some mods, hacks and addons.", 
     "tested":true, 
     "website":"http://forum.xda-developers.com/showthread.php?t=2349584", 
     "gapps":false 
    }, 
    { 
     "name":"Miui 7", 
     "android":"4.4.x", 
     "status":"stable with some bugs", 
     "description":"Chinese rom based on Samsung Galaxy S4 with brand new UI looking like Iphone.", 
     "tested":false, 
     "website":"http://forum.xda-developers.com/galaxy-s4/i9505-develop/4-4-miui-7-t3184430", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":false 
    }, 
    { 
     "name":"AOKP", 
     "android":"4.4.x", 
     "status":"stable" 
     "description":"AOSP based rom with some tweaks.", 
     "tested":true, 
     "website":"http://aokp.co/devices/jflte", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":true 
    }, 
    { 
     "name":"SOKP", 
     "android":"4.4.x", 
     "status":"stable", 
     "description":"Cyanogen Mod 11.0 based rom with some tweaks.", 
     "tested":false, 
     "website":"http://forum.xda-developers.com/showthread.php?t=2724109", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":true 
    }, 
    { 
     "name":"XenonHD", 
     "android":"4.4.2", 
     "status":"alpha 1", 
     "description":"The idea behind XenonHD is to give users a ROM that is 'blazing fast, rock stable and battery smooth'. The ROM is based on AOSP.", 
     "tested":false, 
     "website":"http://forum.xda-developers.com/showthread.php?t=2737839", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":true 
    }, 
    { 
     "name":"SlimSaberKat", 
     "android":"4.4.4", 
     "status":"stable", 
     "description":"The ROM is based on SlimKat (AOSP).", 
     "tested":false, 
     "website":"http://forum.xda-developers.com/showthread.php?t=2760650", 
     "image":"http://abload.de/img/1qzo3r.png", 
     "gapps":true 
    } 
    ] 
    } 

的Java的Android的代码从intenrnet读取它,如果我删除了第2个jsonarrays一切太读取它,并给出了预期的输出,但是当我使用所有的JSON代码它给我的这个异常

org.json.JSONException: Unterminated object at character 1098 of {   "S4ROMS" :[   {   "name":"Cyanogenmod 13",   "android":"6.0.1",   "status":"nightly",   "description":"If you like android, you probably can't wait till your phone gets updates but cyanogenmod 13 brings you not just original android 6.0.1, it comes with root access, option to apply themes, option to switch from hardware to on screen buttons, the rest you will know when you install it.",   "tested":true,   "website":"https://download.cyanogenmod.org/?device=jfltexx",   "image":"http://images.technewstoday.com.s3.amazonaws.com/tnt/how-to-install-android-marshmallow-samsung-galaxy-s4-using-cm13-rom.jpg",   "gapps":true   },  {   "name":"S4 Google Edition",   "android":"4.4.4",   "status":"stable",   "description":"Feel the experience of Nexus - this tells you everything.",   "tested":false,   "website":"http://forum.xda-developers.com/showthread.php?t=2544474",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":false   },   {   "name":"PhoeniX ROM v11.6",   "android":"5.0.x",   "status":"stable"   "description":"Stock 5.0 Samsung Galaxy S4 touchwiz rom with some mods, hacks and addons.",   "tested":true,   "website":"http://forum.xda-developers.com/showthread.php?t=2349584",   "gapps":false   },   {   "name":"Miui 7",   "android":"4.4.x",   "status":"stable with some bugs",   "description":"Chinese rom based on Samsung Galaxy S4 with brand new UI looking like Iphone.",   "tested":false,   "website":"http://forum.xda-developers.com/galaxy-s4/i9505-develop/4-4-miui-7-t3184430",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":false   },   {   "name":"AOKP",   "android":"4.4.x",   "status":"stable"   "description":"AOSP based rom with some tweaks.",   "tested":true,   "website":"http://aokp.co/devices/jflte",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":true   },  {   "name":"SOKP",   "android":"4.4.x",   "status":"stable",   "description":"Cyanogen Mod 11.0 based rom with some tweaks.",   "tested":false,   "website":"http://forum.xda-developers.com/showthread.php?t=2724109",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":true   },  {   "name":"XenonHD",   "android":"4.4.2",   "status":"alpha 1",   "description":"The idea behind XenonHD is to give users a ROM that is 'blazing fast, rock stable and battery smooth'. The ROM is based on AOSP.",   "tested":false,   "website":"http://forum.xda-developers.com/showthread.php?t=2737839",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":true   },  {   "name":"SlimSaberKat",   "android":"4.4.4",   "status":"stable",   "description":"The ROM is based on SlimKat (AOSP).",   "tested":false,   "website":"http://forum.xda-developers.com/showthread.php?t=2760650",   "image":"http://abload.de/img/1qzo3r.png",   "gapps":true   }   ]  } 
+1

某个'status'字段后面缺少逗号,也可以使用在线json验证器 – Hacketo

+0

一个像这样的在线json验证器:https://jsonformatter.curiousconcept.com/ – Andreas

回答

1

下面的图片显示错误原因.............在您的代码 enter image description here

在这里缺少逗号...

4

PhoeniX ROM v11.6的块中,缺少一个逗号a过去status