> i thought i could just do JSON.encode(myArray) but it doesn't remove
> the brackets and breaks the json.  This is what i'm using to test
> this:

> var myArray = [{min: 'blah', max: 'blah', bet: 'blah'}];
> var setJSON = JSON.encode(myArray);
> alert(setJSON);

Why  have  an Array with a single Object element? Just have an Object,
*or* an Array with n elements.

Alternately,

     var setJSON = JSON.encode(myArray[0]);

--Sandy

Reply via email to