"C#,Unity,"{"seed":1668049017,"isFullHouse":true,"gameEndType":6,"events":[{"gameLeftTime":100.0,"realTime":1690963692,"eventType":7,"eventParam":14},{"gameLeftTime":99.2966477964073,"realTime":1690963693,"eventType":5,"eventParam":1}]}这个Json字符串无法被正确解析,它格式错在哪里内容:这个Json字符串格式错误在于最后一个事件的后面缺少了一个逗号。正确的格式应该是:\n\njson\n{\n \"seed\": 1668049017,\n \"isFullHouse\": true,\n \"gameEndType\": 6,\n \"events\": [\n {\n \"gameLeftTime\": 100.0,\n \"realTime\": 1690963692,\n \"eventType\": 7,\n \"eventParam\": 14\n },\n {\n \"gameLeftTime\": 99.2966477964073,\n \"realTime\": 1690963693,\n \"eventType\": 5,\n \"eventParam\": 1\n }\n ]\n}\n\n\n请注意,Json格式要求最后一个元素后面不能有逗号。

C# Unity JSON解析错误:缺少逗号导致解析失败

原文地址: https://www.cveoy.top/t/topic/p9io 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录