[Json-rpc-java] about deserialization

#Cyrille37# cyrille37 at gmail.com
Fri Sep 14 16:40:51 SGT 2007


Hello

For custom classes, have they to implements interface BeanInfo or 
interface Serializable ???

I've got the a class crypto.key.dsa.DSAParametersGenerator which is well 
marshalled, but it doesn't unmarshall, all properties are null.

Here the result of the marshalling :

{
    "id":1,
    "result":
    {
        "g": { "biginteger":"1716...840436", 
"javaClass":"java.math.BigInteger" },
        "q": { "biginteger":"11005...341", 
"javaClass":"java.math.BigInteger" },
        "seed": [ -112,40,...,-96,-41 ],
        "p": { "biginteger":"1819...431", 
"javaClass":"java.math.BigInteger" },
        "javaClass":"crypto.key.dsa.DSAParametersGenerator"
    }
}

Cyrille.



More information about the Json-rpc-java mailing list