存储检查器firefox本地存储编辑JSON错误

时间:2017-11-15 03:58:02

标签: json local-storage firefox-developer-tools

我正在使用在线游戏,该游戏允许为测试人员和/或想要在私人级别上乱搞的客户编辑其代码。该游戏被称为游戏选择:反叛者起义。它是一个基于文本的游戏,您可以根据自己的决定构建角色和故事/角色。我正在尝试测试不同的东西,我在编辑统计数据时遇到了麻烦,这使我能够轻松控制测试不同的游戏选项。我从他们批准的论坛中获得了这种方法,并将其用于多个游戏。然而,这个非常棘手并且拒绝工作。

打开Storage Inspector后,我通常可以直接进入本地存储并选择要更改的数据,然后刷新页面以输入更改。

对于这个游戏,我必须进入会话存储,选择那里唯一的选项,然后返回本地存储,然后显示我想要更改的数据。否则它是看不见的。弹出以下内容以及我想要更改的内容:

{"version":"12169","stats":{"fname":"Balin","lname":"de Brackii","orig_lname":"de Brackii","epithet":"","liebreaker":false,"openhanded":false,"eclect":false,"slur":"","shameveined":false,"filthborn":false,"childkiller":false,"alias":"","crest":"Great Elder Tree","wisard":"Theurge","wisardry":"Theurgy","wisardric":"Theurgic","aristo":true,"helot":false,"female":false,"male":true,"femalepref":true,"malepref":false,"acepref":false,"aropref":false,"kuria":"Captain","milady":"Captain","he":"he","him":"him","his":"his","hers":"his","woman":"man","girl":"boy","sister":"brother","daughter":"son","ruth":32,"skep":24,"natl":46,"ruthreal":32,"skepreal":24,"natlreal":54,"cha":"1","com":"0","int":"2","wealth":35,"loot":"0","followers":336,"kids":178,"nonkids":158,"dead":"0","kidsdead":"0","sa_foll":"12","sc_foll":"21","needfood":88,"foodstore":10,"mules":"4","sickmules":0,"freemules":4,"arms":10,"blood":4,"usedblood":"0","theurgy":"1","theu_spread":"0","theuknown":"0","religion":"0","literate":"10"

我通过简单地编辑4到34的mules和freemules进行测试。然后尝试退出tab并重新打开它,以及只刷新页面,两次都出现此错误:

  

JSON.parse:JSON数据第1行第1003行的对象中属性值之后的数据结尾

我甚至尝试在关闭/刷新之前编辑临时文件,这也做了同样的事情。

理想情况下,我希望能够改变这样的财富,骡子,武器和数据。请告知如何纠正/避免此错误。谢谢!

https://www.choiceofgames.com/rebels/#utm_medium=web&utm_source=ourgames

0 个答案:

没有答案