Jump to content


Photo

Does json_decode handle escaped quotes?


  • Please log in to reply
No replies to this topic

#1 locohost

locohost

    GMC Member

  • GMC Member
  • 459 posts
  • Version:GM:Studio

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users