Does json_decode handle escaped quotes?
Started by locohost, May 28 2012 02:28 AM
No replies to this topic
#1
Posted 28 May 2012 - 02:28 AM
{
"0": {
"PlayerID": "1",
"TypeID": "142",
"Data": "{\"0\":{\"ID\":\"1\",\"Tag\":\"locohost\",\"ArmyID\":\"1\",\"StatusID\":\"1\",\"BoardEdge\":\"2\"}}"
},
"1": {
"PlayerID": "1",
"TypeID": "150",
"Data": "{\"0\":{\"ID\":\"1\",\"Tag\":\"locohost\",\"ArmyID\":\"1\",\"StatusID\":\"1\",\"BoardEdge\":\"2\"},\"1\":{\"ID\":\"2\",\"Tag\":\"professorkill\",\"ArmyID\":\"2\",\"StatusID\":\"1\",\"BoardEdge\":\"0\"}}"
}
}
The above code is what the PHP json_encode function does with a MySQL result set that includes JSON data from the table. It escapes the double quotes with a slash. Can the GM json_decoder handle this?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











