You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Entity:
@Entity
public class Complex {
@Value(type = com.twolattes.json.types.URLType.class)
public List<URL> urlList;
public static void main(String args[]) {
try{
Complex c = new Complex();
c.urlList = new ArrayList<URL>();
c.urlList.add(new URL("http","www.google.com",8080,""));
c.urlList.add(new URL("http","www.yahoo.com",8080,""));
Marshaller<Complex> m = TwoLattes.createMarshaller(Complex.class);
Json.Object obj = m.marshall(c);
System.out.println(obj);
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
}
JSON:
What is the expected output? What do you see instead?
expected output:
{"urlList":["http://www.google.com:8080","http://www.yahoo.com:8080"]}
I see null, and the exception is mentioned below.
Please provide any additional information below.
I am having the following exception right now:
java.lang.ClassCastException
Original issue reported on code.google.com by nabil.sh...@gmail.com on 24 Dec 2009 at 5:11
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
nabil.sh...@gmail.com
on 24 Dec 2009 at 5:11The text was updated successfully, but these errors were encountered: