json parse error with double quotes

前端 未结 9 1155
悲哀的现实
悲哀的现实 2020-12-01 11:38

A double quote even if escaped is throwing parse error.
look at the code below

//parse the json in javascript  
var testJson = \'{\"result\": [\"lunch\",         


        
9条回答
  •  眼角桃花
    2020-12-01 12:37

    Try This. and then try commented

    
    






    'vinay"'."'\\\\", 'email'=>'imvsrajput@demo.demo', 'time'=>date('H:i:00'), 'date'=>date('Y-m-d'), 'detail'=>'Try this var_dump(0=="ZERO") \\ \\"'." ' \\\\ ", 'id'=>123, ]; ?>

提交回复
热议问题