[json-lib-user] Error message when transforming to Bean
Brought to you by:
aalmiray
From: Kiril <kir...@gm...> - 2008-05-23 20:00:38
|
Hi all, I use BeanMorpher to get classes from JSON, all works Ok, but each time I get this message: Property 'MyClass.class' has no write method. SKIPPED. As I use this frequently, the log is full with these. Any idea what I must do to avoid this? I understand that some setter is expected, but which one?? Here is the code: Morpher myMorpher = new BeanMorpher( MyClass.class,morpherRegistry); morpherRegistry.registerMorpher(myMorpher); MyClass.class = (MyClass)morpherRegistry.morph(MyClass.class,json); Thanks in advance, Kiril. |