ggusic / gwtprojsonserializer

Automatically exported from code.google.com/p/gwtprojsonserializer
0 stars 0 forks source link

Cannot parse object implementing JsonSerializable placed in another JsonSerializable object #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

public class SimpleBean implements JsonSerializable{

        private String name;

    private SimpleBean intern;

    public SimpleBean(){}

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = str;
    }

    public void setIntern(SimpleBean intern){
        this.intern = intern;
    }
    public ExtPar getIntern(){
        return this.intern;
    }
}

What is the expected output? What do you see instead?
Application stops at: String serialized = simpleBean.toJson();
As well in debug-mode executions stops without warning/error. 

What version of the product are you using? On what operating system?
1.04 

Please provide any additional information below.

Original issue reported on code.google.com by mich...@mhasler.eu on 20 Sep 2011 at 9:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
public class MainBean implements JsonSerializable{

        private String name;

    private List<SimpleBean> intern;

}

public class SimpleBean implements JsonSerializabl {

    public String getId(){
        return name;
    }
}

MainBean course = (MainBean)serializer.deSerialize( test, 
"edu.com.test.al.todo.client.dto.MainBean");

Unable to deSerialize the JSON into SimpleBean

Original comment by rche...@umich.edu on 8 Jun 2012 at 9:03