我用cout的组合创建了一个c ++程序,用于获取输出作为JSON字符串,以便我可以使用json_decode函数在PHP中解码它。我用自己的逻辑生成了字符串。 我相信输出字符串有问题,但即使花了好几个小时我也找不到它。
var_dump(json_decode($ string,TRUE));发出
NULL
json_last_error_msg();给出
quoted object property name expected
json_last_error();给出
4
在PHP5中使用json_decode($ string,TRUE)尝试解码的原始字符串,平台:Ubuntu x64 14.04 LTS(apache2,php5,php5-json)已安装
{"initUserGrid" :{ { 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }},"initBotGrid" :{ { 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }},"moves" : { "user" : {7 , 6} , "bot" : {0 , 6} , "user" : {2 , 9} , "bot" : {1 , 4} , "user" : {8 , 1} , "bot" : {2 , 4} , "user" : {9 , 9} , "bot" : {0 , 9} , "user" : {9 , 4} , "bot" : {3 , 2} , "bot" : {6 , 6} , "user" : {8 , 8} , "bot" : {4 , 0} , "bot" : {4 , 0} , "user" : {6 , 5} , "bot" : {2 , 7} , "user" : {3 , 3} , "user" : {4 , 4} , "bot" : {9 , 7} , "user" : {9 , 7} , "bot" : {1 , 9} , "user" : {8 , 3} , "bot" : {4 , 3} , "bot" : {7 , 8} , "user" : {0 , 4} , "bot" : {2 , 2} , "bot" : {1 , 8} , "user" : {0 , 1} , "user" : {1 , 7} , "bot" : {2 , 4} , "user" : {4 , 9} , "bot" : {4 , 4} , "bot" : {1 , 7} , "user" : {5 , 8} , "bot" : {5 , 0} , "user" : {9 , 6} , "bot" : {9 , 7} , "user" : {0 , 9} , "bot" : {9 , 4} , "user" : {0 , 9} , "bot" : {1 , 1} , "bot" : {1 , 4} , "user" : {5 , 4} , "bot" : {1 , 1} , "user" : {7 , 8} , "bot" : {7 , 6} , "user" : {2 , 1} , "user" : {1 , 1} , "user" : {1 , 3} , "bot" : {5 , 6} , "user" : {2 , 7} , "bot" : {6 , 4} , "user" : {5 , 3} , "bot" : {9 , 8} , "user" : {7 , 4} , "bot" : {5 , 9} , "user" : {4 , 0} , "user" : {5 , 6} , "bot" : {9 , 1} , "user" : {2 , 8} , "bot" : {4 , 9} , "user" : {0 , 9} , "bot" : {3 , 9} , "user" : {2 , 1} , "bot" : {9 , 4} , "user" : {3 , 8} , "bot" : {4 , 3} , "user" : {7 , 1} , "bot" : {9 , 0} , "user" : {6 , 6} , "bot" : {8 , 8} , "user" : {9 , 4} , "bot" : {0 , 4} , "user" : {7 , 6} , "bot" : {6 , 2} , "user" : {1 , 9} , "bot" : {1 , 1} , "user" : {2 , 3} , "bot" : {7 , 6} , "user" : {0 , 4} , "bot" : {4 , 6} , "user" : {0 , 6} , "bot" : {7 , 1} , "user" : {3 , 9} , "bot" : {7 , 9} , "user" : {7 , 9} , "bot" : {3 , 7} , "user" : {1 , 8} , "bot" : {6 , 6} , "user" : {0 , 1} , "bot" : {2 , 3} , "user" : {6 , 1} , "bot" : {4 , 3} , "user" : {9 , 8} , "bot" : {4 , 1} , "bot" : {0 , 2} , "user" : {8 , 9} , "bot" : {0 , 0} , "bot" : {9 , 7} , "user" : {6 , 3} , "bot" : {4 , 8} , "user" : {6 , 6} , "bot" : {4 , 0} , "user" : {6 , 9} , "bot" : {0 , 3} , "user" : {6 , 6} , "bot" : {9 , 3} , "user" : {8 , 2} , "bot" : {2 , 5} , "user" : {7 , 0} , "user" : {2 , 6} , "bot" : {5 , 7} , "user" : {9 , 2} , "bot" : {9 , 7} , "user" : {2 , 0} , "user" : {8 , 8} , "bot" : {4 , 7} , "user" : {7 , 6} , "bot" : {6 , 0} , "user" : {3 , 5} , "bot" : {3 , 8} , "user" : {1 , 1} , "bot" : {5 , 2} , "user" : {9 , 2} , "bot" : {2 , 7} , "user" : {4 , 6} , "bot" : {5 , 4} , "user" : {8 , 1} , "bot" : {9 , 6} , "user" : {6 , 9} , "bot" : {7 , 3} , "user" : {0 , 7} , "bot" : {3 , 3} , "bot" : {4 , 9} , "user" : {6 , 1} , "bot" : {0 , 9} , "user" : {3 , 9} , "bot" : {3 , 3} , "user" : {5 , 8} , "bot" : {6 , 3} , "user" : {1 , 9} , "bot" : {5 , 0} , "user" : {3 , 9} , "bot" : {5 , 3} , "user" : {3 , 4} , "bot" : {8 , 4} , "user" : {3 , 2} , "user" : {6 , 0} , "user" : {0 , 8} , "bot" : {0 , 2} , "user" : {3 , 8} , "bot" : {8 , 0} , "user" : {5 , 6} , "bot" : {5 , 3} , "user" : {8 , 3} , "bot" : {2 , 1} , "bot" : {3 , 0} , "bot" : {1 , 8} , "user" : {1 , 6} , "bot" : {3 , 6} , "user" : {0 , 6} , "bot" : {9 , 1} , "user" : {1 , 5} , "bot" : {4 , 7} , "user" : {9 , 3} , "bot" : {2 , 4} , "user" : {6 , 2} , "bot" : {9 , 2} , "user" : {7 , 1} , "bot" : {4 , 4} , "user" : {7 , 6} , "bot" : {8 , 9} , "user" : {7 , 0} , "bot" : {8 , 9} , "user" : {5 , 0} , "user" : {9 , 3} , "bot" : {4 , 8}},"result" : "bot"}
缩进版本(不删除' \ n')
{
"initUserGrid" :
{
{ 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
}
,
"initBotGrid" :
{
{ 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
, { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }
}
,
"moves" : {
"user" : {7 , 6}
, "bot" : {0 , 6}
, "user" : {2 , 9}
, "bot" : {1 , 4}
, "user" : {8 , 1}
, "bot" : {2 , 4}
, "user" : {9 , 9}
, "bot" : {0 , 9}
, "user" : {9 , 4}
, "bot" : {3 , 2}
, "bot" : {6 , 6}
, "user" : {8 , 8}
, "bot" : {4 , 0}
, "bot" : {4 , 0}
, "user" : {6 , 5}
, "bot" : {2 , 7}
, "user" : {3 , 3}
, "user" : {4 , 4}
, "bot" : {9 , 7}
, "user" : {9 , 7}
, "bot" : {1 , 9}
, "user" : {8 , 3}
, "bot" : {4 , 3}
, "bot" : {7 , 8}
, "user" : {0 , 4}
, "bot" : {2 , 2}
, "bot" : {1 , 8}
, "user" : {0 , 1}
, "user" : {1 , 7}
, "bot" : {2 , 4}
, "user" : {4 , 9}
, "bot" : {4 , 4}
, "bot" : {1 , 7}
, "user" : {5 , 8}
, "bot" : {5 , 0}
, "user" : {9 , 6}
, "bot" : {9 , 7}
, "user" : {0 , 9}
, "bot" : {9 , 4}
, "user" : {0 , 9}
, "bot" : {1 , 1}
, "bot" : {1 , 4}
, "user" : {5 , 4}
, "bot" : {1 , 1}
, "user" : {7 , 8}
, "bot" : {7 , 6}
, "user" : {2 , 1}
, "user" : {1 , 1}
, "user" : {1 , 3}
, "bot" : {5 , 6}
, "user" : {2 , 7}
, "bot" : {6 , 4}
, "user" : {5 , 3}
, "bot" : {9 , 8}
, "user" : {7 , 4}
, "bot" : {5 , 9}
, "user" : {4 , 0}
, "user" : {5 , 6}
, "bot" : {9 , 1}
, "user" : {2 , 8}
, "bot" : {4 , 9}
, "user" : {0 , 9}
, "bot" : {3 , 9}
, "user" : {2 , 1}
, "bot" : {9 , 4}
, "user" : {3 , 8}
, "bot" : {4 , 3}
, "user" : {7 , 1}
, "bot" : {9 , 0}
, "user" : {6 , 6}
, "bot" : {8 , 8}
, "user" : {9 , 4}
, "bot" : {0 , 4}
, "user" : {7 , 6}
, "bot" : {6 , 2}
, "user" : {1 , 9}
, "bot" : {1 , 1}
, "user" : {2 , 3}
, "bot" : {7 , 6}
, "user" : {0 , 4}
, "bot" : {4 , 6}
, "user" : {0 , 6}
, "bot" : {7 , 1}
, "user" : {3 , 9}
, "bot" : {7 , 9}
, "user" : {7 , 9}
, "bot" : {3 , 7}
, "user" : {1 , 8}
, "bot" : {6 , 6}
, "user" : {0 , 1}
, "bot" : {2 , 3}
, "user" : {6 , 1}
, "bot" : {4 , 3}
, "user" : {9 , 8}
, "bot" : {4 , 1}
, "bot" : {0 , 2}
, "user" : {8 , 9}
, "bot" : {0 , 0}
, "bot" : {9 , 7}
, "user" : {6 , 3}
, "bot" : {4 , 8}
, "user" : {6 , 6}
, "bot" : {4 , 0}
, "user" : {6 , 9}
, "bot" : {0 , 3}
, "user" : {6 , 6}
, "bot" : {9 , 3}
, "user" : {8 , 2}
, "bot" : {2 , 5}
, "user" : {7 , 0}
, "user" : {2 , 6}
, "bot" : {5 , 7}
, "user" : {9 , 2}
, "bot" : {9 , 7}
, "user" : {2 , 0}
, "user" : {8 , 8}
, "bot" : {4 , 7}
, "user" : {7 , 6}
, "bot" : {6 , 0}
, "user" : {3 , 5}
, "bot" : {3 , 8}
, "user" : {1 , 1}
, "bot" : {5 , 2}
, "user" : {9 , 2}
, "bot" : {2 , 7}
, "user" : {4 , 6}
, "bot" : {5 , 4}
, "user" : {8 , 1}
, "bot" : {9 , 6}
, "user" : {6 , 9}
, "bot" : {7 , 3}
, "user" : {0 , 7}
, "bot" : {3 , 3}
, "bot" : {4 , 9}
, "user" : {6 , 1}
, "bot" : {0 , 9}
, "user" : {3 , 9}
, "bot" : {3 , 3}
, "user" : {5 , 8}
, "bot" : {6 , 3}
, "user" : {1 , 9}
, "bot" : {5 , 0}
, "user" : {3 , 9}
, "bot" : {5 , 3}
, "user" : {3 , 4}
, "bot" : {8 , 4}
, "user" : {3 , 2}
, "user" : {6 , 0}
, "user" : {0 , 8}
, "bot" : {0 , 2}
, "user" : {3 , 8}
, "bot" : {8 , 0}
, "user" : {5 , 6}
, "bot" : {5 , 3}
, "user" : {8 , 3}
, "bot" : {2 , 1}
, "bot" : {3 , 0}
, "bot" : {1 , 8}
, "user" : {1 , 6}
, "bot" : {3 , 6}
, "user" : {0 , 6}
, "bot" : {9 , 1}
, "user" : {1 , 5}
, "bot" : {4 , 7}
, "user" : {9 , 3}
, "bot" : {2 , 4}
, "user" : {6 , 2}
, "bot" : {9 , 2}
, "user" : {7 , 1}
, "bot" : {4 , 4}
, "user" : {7 , 6}
, "bot" : {8 , 9}
, "user" : {7 , 0}
, "bot" : {8 , 9}
, "user" : {5 , 0}
, "user" : {9 , 3}
, "bot" : {4 , 8}
}
,
"result" : "bot"
}
答案 0 :(得分:3)
因为那不是有效的JSON。您有对象({...}
),其中需要 "key":"value"
符号。如果那些是数组([...]
),那么它们就是有效的。
你首先使用什么来生成这个“json”?一个合适的JSON库永远不会出错。如果您是手动操作,那么......不要。
答案 1 :(得分:1)
您的json无效,因为您可以轻松查看http://jsonlint.com/。
你可以在美化json的第4行看到第一个问题:
{
"initUserGrid" :
{
{
^ This is wrong
{
表示键值对的开始,因此在第一个{
之后,您总是需要一个双引号字符串。
答案 2 :(得分:0)
修改后的最终更改。我的数组语法错误。这个JSON字符串应该是游戏的记录。有初始网格,然后移动,结果谁赢了。
谢谢大家的回答。
{
"initUserGrid": [
[1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
]
,
"initBotGrid": [
[1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
]
,
"moves": [{
"chance": "user",
"point": [9, 5],
"hit": false
}, {
"chance": "bot",
"point": [4, 2],
"hit": true
}, {
"chance": "bot",
"point": [5, 7],
"hit": false
}, {
"chance": "user",
"point": [4, 0],
"hit": true
}, {
"chance": "user",
"point": [7, 5],
"hit": false
}, {
"chance": "bot",
"point": [7, 5],
"hit": false
}, {
"chance": "user",
"point": [8, 2],
"hit": false
}, {
"chance": "bot",
"point": [8, 2],
"hit": false
}, {
"chance": "user",
"point": [9, 8],
"hit": false
}, {
"chance": "bot",
"point": [0, 8],
"hit": false
}, {
"chance": "user",
"point": [7, 7],
"hit": false
}, {
"chance": "bot",
"point": [2, 7],
"hit": false
}, {
"chance": "user",
"point": [5, 6],
"hit": false
}, {
"chance": "bot",
"point": [4, 0],
"hit": true
}, {
"chance": "bot",
"point": [9, 8],
"hit": false
}, {
"chance": "user",
"point": [1, 4],
"hit": false
}, {
"chance": "bot",
"point": [3, 5],
"hit": false
}, {
"chance": "user",
"point": [2, 1],
"hit": true
}, {
"chance": "user",
"point": [8, 4],
"hit": false
}, {
"chance": "bot",
"point": [9, 5],
"hit": false
}, {
"chance": "user",
"point": [5, 0],
"hit": true
}, {
"chance": "user",
"point": [1, 1],
"hit": true
}, {
"chance": "user",
"point": [5, 3],
"hit": false
}, {
"chance": "bot",
"point": [3, 4],
"hit": false
}, {
"chance": "user",
"point": [2, 0],
"hit": true
}, {
"chance": "user",
"point": [5, 7],
"hit": false
}, {
"chance": "bot",
"point": [9, 8],
"hit": false
}, {
"chance": "user",
"point": [8, 5],
"hit": false
}, {
"chance": "bot",
"point": [1, 1],
"hit": true
}, {
"chance": "bot",
"point": [3, 9],
"hit": false
}, {
"chance": "user",
"point": [5, 6],
"hit": false
}, {
"chance": "bot",
"point": [7, 2],
"hit": false
}, {
"chance": "user",
"point": [6, 9],
"hit": false
}, {
"chance": "bot",
"point": [6, 7],
"hit": false
}, {
"chance": "user",
"point": [1, 0],
"hit": true
}, {
"chance": "user",
"point": [0, 4],
"hit": false
}, {
"chance": "bot",
"point": [3, 4],
"hit": false
}, {
"chance": "user",
"point": [8, 6],
"hit": false
}, {
"chance": "bot",
"point": [7, 0],
"hit": false
}, {
"chance": "user",
"point": [1, 2],
"hit": true
}, {
"chance": "user",
"point": [4, 7],
"hit": false
}, {
"chance": "bot",
"point": [0, 1],
"hit": true
}, {
"chance": "bot",
"point": [4, 4],
"hit": true
}, {
"chance": "bot",
"point": [6, 8],
"hit": false
}, {
"chance": "user",
"point": [2, 8],
"hit": false
}, {
"chance": "bot",
"point": [4, 8],
"hit": false
}, {
"chance": "user",
"point": [9, 9],
"hit": false
}, {
"chance": "bot",
"point": [4, 1],
"hit": true
}, {
"chance": "bot",
"point": [1, 0],
"hit": true
}, {
"chance": "bot",
"point": [3, 0],
"hit": true
}, {
"chance": "bot",
"point": [3, 2],
"hit": true
}, {
"chance": "bot",
"point": [8, 7],
"hit": false
}, {
"chance": "user",
"point": [5, 4],
"hit": false
}, {
"chance": "bot",
"point": [0, 6],
"hit": false
}, {
"chance": "user",
"point": [9, 6],
"hit": false
}, {
"chance": "bot",
"point": [5, 7],
"hit": false
}, {
"chance": "user",
"point": [1, 0],
"hit": false
}, {
"chance": "bot",
"point": [4, 8],
"hit": false
}, {
"chance": "user",
"point": [9, 9],
"hit": false
}, {
"chance": "bot",
"point": [3, 8],
"hit": false
}, {
"chance": "user",
"point": [8, 1],
"hit": false
}, {
"chance": "bot",
"point": [6, 4],
"hit": false
}, {
"chance": "user",
"point": [5, 6],
"hit": false
}, {
"chance": "bot",
"point": [8, 5],
"hit": false
}, {
"chance": "user",
"point": [7, 3],
"hit": false
}, {
"chance": "bot",
"point": [6, 7],
"hit": false
}, {
"chance": "user",
"point": [5, 1],
"hit": false
}, {
"chance": "bot",
"point": [8, 8],
"hit": false
}, {
"chance": "user",
"point": [3, 2],
"hit": true
}, {
"chance": "user",
"point": [5, 4],
"hit": false
}, {
"chance": "bot",
"point": [3, 9],
"hit": false
}, {
"chance": "user",
"point": [6, 8],
"hit": false
}, {
"chance": "bot",
"point": [6, 3],
"hit": false
}, {
"chance": "user",
"point": [3, 9],
"hit": false
}, {
"chance": "bot",
"point": [4, 4],
"hit": false
}, {
"chance": "user",
"point": [8, 5],
"hit": false
}, {
"chance": "bot",
"point": [0, 7],
"hit": false
}, {
"chance": "user",
"point": [0, 9],
"hit": false
}, {
"chance": "bot",
"point": [9, 8],
"hit": false
}, {
"chance": "user",
"point": [1, 3],
"hit": false
}, {
"chance": "bot",
"point": [2, 2],
"hit": true
}, {
"chance": "bot",
"point": [4, 3],
"hit": true
}, {
"chance": "bot",
"point": [7, 0],
"hit": false
}, {
"chance": "user",
"point": [3, 6],
"hit": false
}, {
"chance": "bot",
"point": [3, 9],
"hit": false
}, {
"chance": "user",
"point": [4, 5],
"hit": false
}, {
"chance": "bot",
"point": [2, 1],
"hit": true
}, {
"chance": "bot",
"point": [8, 9],
"hit": false
}, {
"chance": "user",
"point": [9, 1],
"hit": false
}, {
"chance": "bot",
"point": [7, 1],
"hit": false
}, {
"chance": "user",
"point": [3, 6],
"hit": false
}, {
"chance": "bot",
"point": [8, 8],
"hit": false
}, {
"chance": "user",
"point": [5, 7],
"hit": false
}, {
"chance": "bot",
"point": [6, 7],
"hit": false
}, {
"chance": "user",
"point": [2, 7],
"hit": false
}, {
"chance": "bot",
"point": [2, 3],
"hit": false
}, {
"chance": "user",
"point": [1, 6],
"hit": false
}, {
"chance": "bot",
"point": [6, 0],
"hit": false
}, {
"chance": "user",
"point": [7, 0],
"hit": true
}, {
"chance": "user",
"point": [3, 1],
"hit": true
}, {
"chance": "user",
"point": [1, 5],
"hit": false
}, {
"chance": "bot",
"point": [5, 3],
"hit": false
}],
"result": "bot"
}