I can't parce JSON by JQuery : I need to send some data to JQuery by JSON. There is my code below:

PHP:

    $name = "test";
    $answer = array("code" => 1, "name" => $name);
    echo json_encode($answer);

Js:

    console.log(data); 
    var response = JSON.parse(data);

Console says:

    ﻿﻿{"code":1,"name":"test"}
    VM635:2 Uncaught SyntaxError: Unexpected token ﻿ in JSON at position 2
    at JSON.parse (<anonymous>)
    at Object.onAjaxSuccess [as success] (auth.js:32)
    at u (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at k (jquery.js:2)
    at XMLHttpRequest.<anonymous> (jquery.js:2)

Help me :O