Title: error $.parseJSON
Last modified: August 21, 2016

---

# error $.parseJSON

 *  [tienduydng](https://wordpress.org/support/users/tienduydng/)
 * (@tienduydng)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-parsejson/)
 * Hi everybody ! I am a newer in WordPress. I have a problem when I try to use 
   ajax and Jquery.
    Error is: Uncaught SyntaxError: unexpected token = x.extend.
   parseJSON $.ajax.success c p.firewith k r
 * This is code in ajax file
    $(‘#Autoload’).change(function(){ var idCate = $(this).
   val(); var keystring = ‘key=’+idCate; $.ajax({ type:”POST”, process:”updatecate.
   php”, data:keystring, success:function(string){ var respData = $.parseJSON(string);
   alert(respData.codeID); } }); });
 * This is code in file updatecate.php
    if(!isset($_POST[‘key’])) exit(); $idCat
   = $_POST[‘key’]; $arr = array( ‘codeID’ => $idCat, );
 *  echo json_encode($arr);
    die;
 * I don’t know what does this error. and how to fix it. Please help me. Thanks 
   so much !

The topic ‘error $.parseJSON’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tienduydng](https://wordpress.org/support/users/tienduydng/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/error-parsejson/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
