using jquery autocomplete widget with json

using jquery autocomplete widget with json

hi

i am not able to understand how to get my json picked in autocomplete UI widget.

  1. for(var i=0, l = data.itemisedBill.length; i<l;i+=1){
  2. var itemLength=data.itemisedBill[i].item;
  3. $(itemLength).autocomplete({
  4. source: $[data.itemisedBill]
  5.     });
  6.  
  7. }

It is giving exception in the source part? how should i give my json here. I json file is separate.

Thanks