json and jquery ajax

json and jquery ajax

Hi
I want get data from php with jquery.I wrote this code:

in php:
  1. <?php
  2.       $return=array('content'=>1,'id'=>2,'priiority'=>3);
  3.       echo json_encode($return);
  4. ?>
 in jquery:
  1.                         $.ajax({
  2. type:'post',
  3. url:'next_prev.php',
  4. data:{act:act,id:id,priority:priority},
  5. dataType: 'json',
  6.       cache: false,

  7. success:function(data){
  8. var obj=jQuery.parseJSON(data)
  9. $('#content').html(obj.content);
  10. $('#priority').html(obj.priority);
  11. $('#id').html(obj.id);
  12. },
  13. });
but it does not work.whats wrong?

Thanks