Are you using a Pivot list or a JDK list? With a Pivot list, the example code 
works fine for me.

On Apr 18, 2011, at 2:30 PM, Duto wrote:

> I am trying but same error : 
> 
> public class Test {
>    private List<String> listString = new ArrayList<String>();
> 
>    public Test() {
>        listString.add(0, "row1");
>        listString.add(1, "row2");
>        listString.add(2, "row3");
>    }
> 
>    public List<String> getListString() {
>        return listString;
>    }
> 
>    public void setListString(List<String> listString) {
>        this.listString = listString;
>    }
> 
>    public static void main(String[] args) {
>        System.out.println(JSON.containsKey(new BeanAdapter(new Test()),
> "listString[0]"));
>    }
> }
> 
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/json-and-array-tp2835305p2835512.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to