A double quote even if escaped is throwing parse error. look at the code below
//parse the json in javascript var testJson = \'{\"result\": [\"lunch\",
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, ]; ?> =json_encode($data)?>