martbhell Posted December 8, 2015 Share Posted December 8, 2015 Hi,another of these Apparently "prename": "The "Democratic" "Republic" of", is invalid JSON (at least according to https://jsonformatter.curiousconcept.com/ ) It looks like it's the unescaped quotes around "Democratic" and "Republic" { "kind": "nation", "data": { "nationdata": { "nationid": 14578, "name": "The Shield", "prename": "The "Democratic" "Republic" of", "continent": "Asia", "socialpolicy": "liberal", "color": "green", "minutessinceactive": 700, "uniqueid": "df205519923b3d0965862aad", "government": "stratocracy", "founded": "2015-03-10 22:49:10", "daysold": 272, "alliance": "Green Protection Agency", "allianceposition": 2, "allianceid": 624, "flagurl": "https://i.imgur.com/8XLVtLb.png", "leadername": "Trapper777", "title": "Dear Leader", "ecopolicy": "right wing", "approvalrating": "183.6121", "nationrank": 520, "nationrankstrings": "#520 of 3878 Nations", "nrtotal": 3878, "cities": 8, "latitude": 21.15, "longitude": 76.78, "score": 1107.18, "population": 1441386, "gdp": 4245088963.74, "totalinfrastructure": 13600, "landarea": 12000, "cityids":[ 23700, 24908, 25834, 28511, 32563, 33401, 35527, 42739], "soldiers": 80000, "soldiercasualties": 285901, "soldierskilled": 102025, "tanks": 3009, "tankcasualties": 7517, "tankskilled": 2086, "aircraft": 510, "aircraftcasualties": 506, "aircraftkilled": 252, "ships": 20, "shipcasualties": 0, "shipskilled": 0, "missiles": 0, "missilelaunched": 0, "missileseaten": 0, "nukes": 0, "nukeslaunched": 0, "nukeseaten": 0, "infdesttot": 25.08, "ironworks": 0, "bauxiteworks": 0, "armsstockpile": 0, "emgasreserve": 0, "massirrigation": 0, "inttradecenter": 0, "missilelpad": 0, "nuclearresfac": 0, "irondome": 1, "vitaldefsys": 0, "cenintagncy": 0, "cenciveng": 1 }}} Quote Link to comment Share on other sites More sharing options...
Administrators Alex Posted December 8, 2015 Administrators Share Posted December 8, 2015 Should be fixed in the next patch, thanks! Quote Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest ItForums Rules | Game Link Link to comment Share on other sites More sharing options...
martbhell Posted December 10, 2015 Author Share Posted December 10, 2015 No bounty anymore? Another error: http://politicsandwar.com/api/nation/id=22917 It's the escaped ' which is invalid. Apparently it's OK to have single qoutes inside the values without having to escape them. { "kind": "nation", "data": { "nationdata": { "nationid": 22917, "name": "Steloria", "prename": "The People\'s Republic of", "continent": "Asia", "socialpolicy": "libertarian", "color": "green", "minutessinceactive": 278, "uniqueid": "d5899c0a165d7c2f00340462", "government": "stratocracy", "founded": "2015-09-10 07:15:56", "daysold": 91, "alliance": "Green Protection Agency", "allianceposition": 2, "allianceid": 624, "flagurl": "https://i.imgur.com/oKdXJBJ.png", "leadername": "Aleks Kozlov", "title": "President", "ecopolicy": "far left wing", "approvalrating": "233.7450", "nationrank": 1391, "nationrankstrings": "#1391 of 3889 Nations", "nrtotal": 3889, "cities": 5, "latitude": 48.70, "longitude": 37.42, "score": 307.30, "population": 309391, "gdp": 488599462.44, "totalinfrastructure": 3500, "landarea": 5000, "cityids":[ 38644, 40752, 43622, 44870, 47489], "soldiers": 24000, "soldiercasualties": 0, "soldierskilled": 0, "tanks": 900, "tankcasualties": 0, "tankskilled": 0, "aircraft": 39, "aircraftcasualties": 0, "aircraftkilled": 0, "ships": 3, "shipcasualties": 0, "shipskilled": 0, "missiles": 0, "missilelaunched": 0, "missileseaten": 0, "nukes": 0, "nukeslaunched": 0, "nukeseaten": 0, "infdesttot": 0.00, "ironworks": 0, "bauxiteworks": 0, "armsstockpile": 0, "emgasreserve": 0, "massirrigation": 0, "inttradecenter": 0, "missilelpad": 0, "nuclearresfac": 0, "irondome": 0, "vitaldefsys": 0, "cenintagncy": 0, "cenciveng": 0 }}} Quote Link to comment Share on other sites More sharing options...
Yosodog Posted December 11, 2015 Share Posted December 11, 2015 Just had to deal with an issue exactly like the one above. Quote [22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made BK in a nutshell Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.